Commit 21924d76 authored by Anael Beutot's avatar Anael Beutot
Browse files

Add bool states for MainLoop.

parent 8eff778e
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -193,6 +193,14 @@ class MainLoop(object):
        # plugins
        self.registered_plugins = set()

    @property
    def rpc_connected(self):
        return self.rpc_con is not None

    @property
    def rpc_authenticated(self):
        return self.rpc_connected and self.connect is None

    # RPC handlers definitions
    @threadless
    def sub_tags(self, sub_id, tags=None, noresolve_tags=None):