Pass correct show state
This commit is contained in:
parent
6cd619675f
commit
38ac6a0637
|
@ -646,12 +646,12 @@ class Connection(CommonConnection, ConnectionHandlers):
|
||||||
def set_oldst(self): # Set old state
|
def set_oldst(self): # Set old state
|
||||||
if self.old_show:
|
if self.old_show:
|
||||||
self.connected = app.SHOW_LIST.index(self.old_show)
|
self.connected = app.SHOW_LIST.index(self.old_show)
|
||||||
app.nec.push_incoming_event(OurShowEvent(None, conn=self,
|
app.nec.push_incoming_event(OurShowEvent(
|
||||||
show=self.connected))
|
None, conn=self, show=app.SHOW_LIST[self.old_show]))
|
||||||
else: # we default to online
|
else: # we default to online
|
||||||
self.connected = 2
|
self.connected = 2
|
||||||
app.nec.push_incoming_event(OurShowEvent(None, conn=self,
|
app.nec.push_incoming_event(OurShowEvent(
|
||||||
show=app.SHOW_LIST[self.connected]))
|
None, conn=self, show=app.SHOW_LIST[self.connected]))
|
||||||
|
|
||||||
def disconnectedReconnCB(self):
|
def disconnectedReconnCB(self):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in New Issue