prevent TB when connection is lost. fixes #4112
This commit is contained in:
		
							parent
							
								
									22fda4ba02
								
							
						
					
					
						commit
						cd6742a9e4
					
				
					 1 changed files with 4 additions and 0 deletions
				
			
		| 
						 | 
					@ -722,6 +722,10 @@ class ConnectionDisco:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	def _DiscoverItemsGetCB(self, con, iq_obj):
 | 
						def _DiscoverItemsGetCB(self, con, iq_obj):
 | 
				
			||||||
		gajim.log.debug('DiscoverItemsGetCB')
 | 
							gajim.log.debug('DiscoverItemsGetCB')
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
							if not self.connection:
 | 
				
			||||||
 | 
								return
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		if self.commandItemsQuery(con, iq_obj):
 | 
							if self.commandItemsQuery(con, iq_obj):
 | 
				
			||||||
			raise common.xmpp.NodeProcessed
 | 
								raise common.xmpp.NodeProcessed
 | 
				
			||||||
		node = iq_obj.getTagAttr('query', 'node')
 | 
							node = iq_obj.getTagAttr('query', 'node')
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue