Use base class' stop.

The initiative connection is now managed by the base class.
This commit is contained in:
Yuxin Wang 2018-10-01 00:14:59 -04:00
parent 8db86a7ab4
commit 8b6dc6a875

View file

@ -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, {