Changeset 8894

Show
Ignore:
Timestamp:
10/07/07 22:58:55 (14 months ago)
Author:
steve-e
Message:

Fix filetransfer in zeroconf

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/common/zeroconf/client_zeroconf.py

    r8458 r8894  
    213213        def on_disconnect(self): 
    214214                if self.conn_holder: 
    215                         if self.conn_holder.number_of_awaiting_messages.has_key(self.conn_holder.fd): 
    216                                 if self.conn_holder.number_of_awaiting_messages[self.conn_holder.fd] > 0: 
     215                        if self.conn_holder.number_of_awaiting_messages.has_key(self.fd): 
     216                                if self.conn_holder.number_of_awaiting_messages[self.fd] > 0: 
    217217                                        self._caller.dispatch('MSGERROR',[unicode(self.to), -1, \ 
    218218                                        _('Connection to host could not be established'), None, None]) 
    219                                 del self.conn_holder.number_of_awaiting_messages[self.conn_holder.fd] 
     219                                del self.conn_holder.number_of_awaiting_messages[self.fd] 
    220220                        self.conn_holder.remove_connection(self.sock_hash)  
    221221                if self.__dict__.has_key('Dispatcher'):