Commit 0cb1dcd1 authored by Antoine Millet's avatar Antoine Millet
Browse files

Now use a standard pyev loop instead of the default loop by default in RpcConnection and RpcServer

parent 0bdd91bb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -77,7 +77,7 @@ class RpcConnection(object):

        # Get the pyev loop:
        if loop is None:
            self.loop = pyev.default_loop()
            self.loop = pyev.Loop()
        else:
            self.loop = loop

+1 −1
Original line number Diff line number Diff line
@@ -26,7 +26,7 @@ class RpcServer(object):
        self._clients = set()
        self.logger = logging.getLogger('sjrpc')
        if loop is None:
            self.loop = pyev.default_loop()
            self.loop = pyev.Loop()
        else:
            self.loop = loop
        self._conn_args = conn_args