added workaround for when the client can't access the scheduler
(and tries to display the time). fix for issue #810 see http://bugs.campware.org/view.php?id=810
This commit is contained in:
parent
410ff9c727
commit
def181bd9c
1 changed files with 10 additions and 5 deletions
|
@ -21,8 +21,8 @@
|
|||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
|
||||
|
||||
Author : $Author: fgerlits $
|
||||
Version : $Revision: 1.17 $
|
||||
Author : $Author: maroy $
|
||||
Version : $Revision: 1.18 $
|
||||
Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/products/gLiveSupport/src/MasterPanelWindow.cxx,v $
|
||||
|
||||
------------------------------------------------------------------------------*/
|
||||
|
@ -267,8 +267,13 @@ MasterPanelWindow :: resetTimer(void) throw ()
|
|||
bool
|
||||
MasterPanelWindow :: onUpdateTime(int dummy) throw ()
|
||||
{
|
||||
Ptr<const ptime>::Ref now = gLiveSupport->getScheduler()
|
||||
->getSchedulerTime();
|
||||
Ptr<const ptime>::Ref now;
|
||||
|
||||
try {
|
||||
now = gLiveSupport->getScheduler()->getSchedulerTime();
|
||||
} catch (XmlRpcException &e) {
|
||||
// TODO: handle error
|
||||
}
|
||||
|
||||
if (now.get()) {
|
||||
time_duration dayTime = now->time_of_day();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue