From b0928645713695269c8532e2e926ba632ff9504b Mon Sep 17 00:00:00 2001 From: Jason Paryani Date: Wed, 4 Dec 2013 12:17:22 -0800 Subject: [PATCH] Fix bug in `run_forever` --- capnp/capnp.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/capnp/capnp.pyx b/capnp/capnp.pyx index d193098..73f326b 100644 --- a/capnp/capnp.pyx +++ b/capnp/capnp.pyx @@ -1600,7 +1600,7 @@ cdef class RpcServer: del self.thisptr def run_forever(self): - return _VoidPromise()._init(deref(self.network.thisptr).onDisconnect()) + _VoidPromise()._init(deref(self.network.thisptr).onDisconnect()).wait() # TODO: add restore functionality here?