Use base class' stop.
The initiative connection is now managed by the base class.
This commit is contained in:
parent
8db86a7ab4
commit
8b6dc6a875
1 changed files with 0 additions and 4 deletions
|
@ -148,10 +148,6 @@ class Peer(MessageServer):
|
|||
|
||||
return True, 'File {} dowloaded to {}'.format(file, destination)
|
||||
|
||||
def stop(self):
|
||||
self._server_sock.close()
|
||||
super().stop()
|
||||
|
||||
def _server_started(self):
|
||||
logger.info('Requesting to register')
|
||||
self._write_message(self._server_sock, {
|
||||
|
|
Loading…
Reference in a new issue