Fixed exception on starting already a running task

This commit is contained in:
Uriziel 2013-01-13 21:56:46 +01:00
parent 189f8125ee
commit 899f61d6c7

View File

@ -365,12 +365,14 @@ class SyncplayClient(object):
roomFilesDiffer = not self._userlist.areAllFilesInRoomSameOnFirstUnpause()
if (paused == False and roomFilesDiffer):
self._ui.showMessage(getMessage("en", "room-files-not-same"), True)
if(not self._warnings["room-files-not-same"]['timer'].running):
self._warnings["room-files-not-same"]['timer'].start(constants.WARNING_OSD_MESSAGES_LOOP_INTERVAL, True)
def _checkIfYouReAloneInTheRoom(self, paused):
aloneInRoom = self._userlist.areYouAloneInRoomOnFirstUnpause()
if (paused == False and aloneInRoom):
self._ui.showMessage(getMessage("en", "alone-in-the-room"), True)
if(not self._warnings["alone-in-the-room"]['timer'].running):
self._warnings["alone-in-the-room"]['timer'].start(constants.WARNING_OSD_MESSAGES_LOOP_INTERVAL, True)
def __displayMessageOnOSD(self, warningName):