don't try to send thing after we are disconnected. Fixes #5437
This commit is contained in:
		
							parent
							
								
									8720eb221d
								
							
						
					
					
						commit
						094941f89e
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		|  | @ -553,6 +553,7 @@ class CommonConnection: | |||
| 			self.connect_and_init(show, msg, sign_msg) | ||||
| 
 | ||||
| 		elif show == 'offline': | ||||
| 			self.connected = 0 | ||||
| 			if self.connection: | ||||
| 				p = common.xmpp.Presence(typ = 'unavailable') | ||||
| 				p = self.add_sha(p, False) | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue