Ticket #1955: connection_lost.patch

File connection_lost.patch, 0.5 kB (added by j@…, 3 years ago)

fix this by calling self.disconnect()

  • src/common/connection.py

     
    159159        # END disconenctedReconnCB 
    160160         
    161161        def _connection_lost(self): 
     162                self.disconnect(on_purpose = False) 
     163                self.dispatch('STATUS', 'offline') 
    162164                self.dispatch('ERROR', 
    163165                (_('Connection with account "%s" has been lost') % self.name, 
    164166                _('To continue sending and receiving messages, you will need to reconnect.')))