guard
This commit is contained in:
parent
942f204140
commit
b03801d155
|
@ -52,9 +52,10 @@ class TransitConnection(LineReceiver):
|
||||||
"""
|
"""
|
||||||
ITransitClient API
|
ITransitClient API
|
||||||
"""
|
"""
|
||||||
print("buddy_disconnected {}".format(self._buddy.get_token()))
|
if self._buddy is not None:
|
||||||
self._buddy._client.transport.loseConnection()
|
# print("buddy_disconnected {}".format(self._buddy.get_token()))
|
||||||
self._buddy = None
|
self._buddy._client.transport.loseConnection()
|
||||||
|
self._buddy = None
|
||||||
|
|
||||||
def describeToken(self):
|
def describeToken(self):
|
||||||
d = "-"
|
d = "-"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user