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:
maroy 2005-04-15 15:13:01 +00:00
parent 410ff9c727
commit def181bd9c

View file

@ -21,8 +21,8 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Author : $Author: fgerlits $ Author : $Author: maroy $
Version : $Revision: 1.17 $ Version : $Revision: 1.18 $
Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/products/gLiveSupport/src/MasterPanelWindow.cxx,v $ Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/products/gLiveSupport/src/MasterPanelWindow.cxx,v $
------------------------------------------------------------------------------*/ ------------------------------------------------------------------------------*/
@ -267,8 +267,13 @@ MasterPanelWindow :: resetTimer(void) throw ()
bool bool
MasterPanelWindow :: onUpdateTime(int dummy) throw () MasterPanelWindow :: onUpdateTime(int dummy) throw ()
{ {
Ptr<const ptime>::Ref now = gLiveSupport->getScheduler() Ptr<const ptime>::Ref now;
->getSchedulerTime();
try {
now = gLiveSupport->getScheduler()->getSchedulerTime();
} catch (XmlRpcException &e) {
// TODO: handle error
}
if (now.get()) { if (now.get()) {
time_duration dayTime = now->time_of_day(); time_duration dayTime = now->time_of_day();