Opened 11 years ago

Closed 11 years ago

#5815 closed patch (fixed)

PATCH: Mythfrontend wasn't stopping automatic shutdown (any more)

Reported by: maillists@… Owned by: Isaac Richards
Priority: minor Milestone: unknown
Component: mythtv Version: head
Severity: low Keywords: mythfrontend automatic shutdown
Cc: Ticket locked: no

Description

The checkTimeZone() call in main in programs/mythfrontend/main.cpp causes a connection to be made to the Masterbackend.

As a consequence the call to gContext->ConnectToMasterServer?() further down the method not make a connection to the backend that stops it shutting down (when the system is appropriately configured).

My simple fix to this was to move the call to ConnectToMasterServer?() to before the checkTimeZone() call.

Single file patch attached.

Attachments (1)

mythtv-ticket5815-patch.txt (956 bytes) - added by maillists@… 11 years ago.
Patch to fix.

Download all attachments as: .zip

Change History (3)

Changed 11 years ago by maillists@…

Attachment: mythtv-ticket5815-patch.txt added

Patch to fix.

comment:1 Changed 11 years ago by t-p@…

This patch seems to also fix ticket #5805.

comment:2 Changed 11 years ago by paulh

Resolution: fixed
Status: newclosed

(In [18699]) Move the call to checkTimeZone() to after the call to gContext->ConnectToMasterServer?() when myth is set to auto shutdown when idle. This makes sure a blocking connection to the backend is opened when the FE is started which will block BE shutdown until closed.

Fixes #5815,#5805.

Note: See TracTickets for help on using tickets.