Fix filetransfer in zeroconf
This commit is contained in:
		
							parent
							
								
									53d6eb93dd
								
							
						
					
					
						commit
						a3613e1493
					
				
					 1 changed files with 3 additions and 3 deletions
				
			
		| 
						 | 
					@ -212,11 +212,11 @@ class P2PClient(IdleObject):
 | 
				
			||||||
	
 | 
						
 | 
				
			||||||
	def on_disconnect(self):
 | 
						def on_disconnect(self):
 | 
				
			||||||
		if self.conn_holder:
 | 
							if self.conn_holder:
 | 
				
			||||||
			if self.conn_holder.number_of_awaiting_messages.has_key(self.conn_holder.fd):
 | 
								if self.conn_holder.number_of_awaiting_messages.has_key(self.fd):
 | 
				
			||||||
				if self.conn_holder.number_of_awaiting_messages[self.conn_holder.fd] > 0:
 | 
									if self.conn_holder.number_of_awaiting_messages[self.fd] > 0:
 | 
				
			||||||
					self._caller.dispatch('MSGERROR',[unicode(self.to), -1, \
 | 
										self._caller.dispatch('MSGERROR',[unicode(self.to), -1, \
 | 
				
			||||||
					_('Connection to host could not be established'), None, None])
 | 
										_('Connection to host could not be established'), None, None])
 | 
				
			||||||
				del self.conn_holder.number_of_awaiting_messages[self.conn_holder.fd]
 | 
									del self.conn_holder.number_of_awaiting_messages[self.fd]
 | 
				
			||||||
			self.conn_holder.remove_connection(self.sock_hash) 
 | 
								self.conn_holder.remove_connection(self.sock_hash) 
 | 
				
			||||||
		if self.__dict__.has_key('Dispatcher'):
 | 
							if self.__dict__.has_key('Dispatcher'):
 | 
				
			||||||
			self.Dispatcher.PlugOut()
 | 
								self.Dispatcher.PlugOut()
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue