3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-24 03:29:28 +01:00

NetworkCore: don't clear state on disconnect

This is already reset on connect, so doing it here too is a bit pointless.
This commit is contained in:
James Lu 2017-12-03 18:35:03 -08:00
parent bebdf2e4ff
commit 2fc5d32e3f

View File

@ -414,9 +414,6 @@ class PyLinkNetworkCore(structures.DeprecatedAttributesObject, structures.CamelC
# Internal hook signifying that a network has disconnected.
self.call_hooks([None, 'PYLINK_DISCONNECT', {'was_successful': self.was_successful}])
log.debug('(%s) _post_disconnect: Clearing state via _init_vars().', self.name)
self._init_vars()
def _remove_client(self, numeric):
"""Internal function to remove a client from our internal state."""
for c, v in self.channels.copy().items():