connector: use disconnect(), not loseConnection()

This commit is contained in:
Brian Warner 2019-02-10 15:57:55 -08:00
parent 0c9d2c927a
commit bf25dc68cf

View File

@ -234,7 +234,7 @@ class Connector(object):
def stop_pending_connections(self):
d = self._pending_connections.when_next_empty()
[c.loseConnection() for c in self._pending_connections]
[c.disconnect() for c in self._pending_connections]
return d
def break_cycles(self):