Re-work client drop (protocols.py)

This commit is contained in:
Etoh 2014-02-19 20:30:13 +00:00
parent 38d240d135
commit dcebdbaa10

View File

@ -67,9 +67,9 @@ class SyncClientProtocol(JSONCommandProtocol):
self._client.destroyProtocol()
def dropWithError(self, error):
self._client.ui.showErrorMessage(error)
self._client.protocolFactory.stopRetrying()
self.drop()
self._client.drop()
self._client.stop(error)
def _extractHelloArguments(self, hello):
username = hello["username"] if hello.has_key("username") else None