Pass correct show state
This commit is contained in:
		
							parent
							
								
									ff424b5084
								
							
						
					
					
						commit
						ef3cc504d2
					
				
					 1 changed files with 4 additions and 4 deletions
				
			
		|  | @ -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): | ||||
|         """ | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue