[marcin.bachry] disconnect once proxy has been tested. Fixes #5409
This commit is contained in:
parent
dce2ea58b3
commit
32309d2a30
|
@ -286,7 +286,10 @@ class HostTester(Socks5, IdleObject):
|
|||
elif self.state == 3:
|
||||
log.debug('Host authenticated to %s:%s' % (self.host, self.port))
|
||||
self.on_success()
|
||||
self.disconnect()
|
||||
self.state += 1
|
||||
else:
|
||||
assert False, 'unexpected state: %d' % self.state
|
||||
|
||||
def do_connect(self):
|
||||
try:
|
||||
|
@ -402,7 +405,10 @@ class ReceiverTester(Socks5, IdleObject):
|
|||
return
|
||||
log.debug('Receiver authenticated to %s:%s' % (self.host, self.port))
|
||||
self.on_success()
|
||||
self.disconnect()
|
||||
self.state += 1
|
||||
else:
|
||||
assert False, 'unexpected state: %d' % self.state
|
||||
|
||||
def do_connect(self):
|
||||
try:
|
||||
|
|
Loading…
Reference in New Issue