Skip to content
Snippets Groups Projects
Commit 630c15e2 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

[thorstenp] remove redefined fnuction

parent 36afb4e5
No related branches found
No related tags found
No related merge requests found
...@@ -484,18 +484,6 @@ class P2PConnection(IdleObject, PlugIn): ...@@ -484,18 +484,6 @@ class P2PConnection(IdleObject, PlugIn):
self.disconnect() self.disconnect()
return True return True
def onreceive(self, recv_handler):
if not recv_handler:
if hasattr(self._owner, 'Dispatcher'):
self.on_receive = self._owner.Dispatcher.ProcessNonBlocking
else:
self.on_receive = None
return
_tmp = self.on_receive
# make sure this cb is not overriden by recursive calls
if not recv_handler(None) and _tmp == self.on_receive:
self.on_receive = recv_handler
def disconnect(self): def disconnect(self):
''' Closes the socket. ''' ''' Closes the socket. '''
gajim.idlequeue.remove_timeout(self.fd) gajim.idlequeue.remove_timeout(self.fd)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment