Fixed some spurious bugs.
This commit is contained in:
parent
7e146eae11
commit
7818ca077a
2 changed files with 11 additions and 9 deletions
|
|
@ -250,7 +250,9 @@ class StateLightSourceOn(Script):
|
||||||
prematurely, this hook will store the current
|
prematurely, this hook will store the current
|
||||||
burntime.
|
burntime.
|
||||||
"""
|
"""
|
||||||
# calculate remaining burntime
|
# calculate remaining burntime, if object is not
|
||||||
|
# already deleted (because it burned out)
|
||||||
|
if self.obj:
|
||||||
try:
|
try:
|
||||||
time_burnt = time.time() - self.db.script_started
|
time_burnt = time.time() - self.db.script_started
|
||||||
except TypeError:
|
except TypeError:
|
||||||
|
|
|
||||||
|
|
@ -217,7 +217,7 @@ class WebClientSession(session.Session):
|
||||||
Disconnect from server
|
Disconnect from server
|
||||||
"""
|
"""
|
||||||
if reason:
|
if reason:
|
||||||
self.lineSend(self.suid, reason)
|
self.client.lineSend(self.suid, reason)
|
||||||
self.client.client_disconnect(self.suid)
|
self.client.client_disconnect(self.suid)
|
||||||
|
|
||||||
def data_out(self, string='', data=None):
|
def data_out(self, string='', data=None):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue