show connect failure dialog when Unhandled data
is received (wrong protocol)
This commit is contained in:
parent
ad1ec1ab40
commit
9768940b3a
|
@ -247,6 +247,8 @@ class NonBlockingTcp(PlugIn, IdleObject):
|
||||||
# This should never happed, so we need the debug
|
# This should never happed, so we need the debug
|
||||||
self.DEBUG('Unhandled data received: %s' % received,'got')
|
self.DEBUG('Unhandled data received: %s' % received,'got')
|
||||||
self.disconnect()
|
self.disconnect()
|
||||||
|
if self.on_connect_failure:
|
||||||
|
self.on_connect_failure()
|
||||||
return True
|
return True
|
||||||
|
|
||||||
def _do_send(self):
|
def _do_send(self):
|
||||||
|
|
Loading…
Reference in New Issue