Fixed some spurious bugs.

This commit is contained in:
Griatch 2012-02-29 21:58:08 +01:00
parent 7e146eae11
commit 7818ca077a
2 changed files with 11 additions and 9 deletions

View file

@ -250,7 +250,9 @@ class StateLightSourceOn(Script):
prematurely, this hook will store the current
burntime.
"""
# calculate remaining burntime
# calculate remaining burntime, if object is not
# already deleted (because it burned out)
if self.obj:
try:
time_burnt = time.time() - self.db.script_started
except TypeError:

View file

@ -217,7 +217,7 @@ class WebClientSession(session.Session):
Disconnect from server
"""
if reason:
self.lineSend(self.suid, reason)
self.client.lineSend(self.suid, reason)
self.client.client_disconnect(self.suid)
def data_out(self, string='', data=None):