Skip to content
Snippets Groups Projects
Commit 38ac6a06 authored by Philipp Hörist's avatar Philipp Hörist
Browse files

Pass correct show state

parent 6cd61967
No related branches found
No related tags found
No related merge requests found
......@@ -646,12 +646,12 @@ class Connection(CommonConnection, ConnectionHandlers):
def set_oldst(self): # Set old state
if self.old_show:
self.connected = app.SHOW_LIST.index(self.old_show)
app.nec.push_incoming_event(OurShowEvent(None, conn=self,
show=self.connected))
app.nec.push_incoming_event(OurShowEvent(
None, conn=self, show=app.SHOW_LIST[self.old_show]))
else: # we default to online
self.connected = 2
app.nec.push_incoming_event(OurShowEvent(None, conn=self,
show=app.SHOW_LIST[self.connected]))
app.nec.push_incoming_event(OurShowEvent(
None, conn=self, show=app.SHOW_LIST[self.connected]))
def disconnectedReconnCB(self):
"""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment