Change run_forever to use onDisconnect

This commit is contained in:
Jason Paryani
2013-11-18 11:58:03 -08:00
parent 311da1b12f
commit 42da9f4101
2 changed files with 3 additions and 2 deletions

View File

@@ -1582,8 +1582,7 @@ cdef class RpcServer:
del self.thisptr
def run_forever(self):
p = PromiseFulfillerPair()
self.loop.wait(p)
self.loop.wait(_VoidPromise()._init(deref(self.network.thisptr).onDisconnect()))
# TODO: add restore functionality here?