Have a disconnection event in the test client.

develop
Sven Slootweg 12 years ago
parent 84fc002684
commit c5e5913b4c

@ -27,3 +27,6 @@ class TestClient(pyreactor.BaseClient):
stream.copy("test.dat") stream.copy("test.dat")
print "Exiting..." print "Exiting..."
self.reactor.stop() self.reactor.stop()
def event_disconnected(self):
print "Client disconnected."

Loading…
Cancel
Save