Skip to content
Snippets Groups Projects
Commit 3f4489d2 authored by Anael Beutot's avatar Anael Beutot
Browse files

Can register/deregister RPC handlers on the MainLoop imperatively.

parent 21924d76
No related branches found
No related tags found
No related merge requests found
......@@ -243,6 +243,12 @@ class MainLoop(object):
for tag in self.tag_db.pop(sub_id, {}).itervalues():
tag.stop()
def reset_handler(self, name, handl):
self.rpc_handler[name] = handl
def remove_handler(self, name):
self.rpc_handler.pop(name, None)
def register_plugin(self, plugin):
# keep track of registered plugins
if plugin in self.registered_plugins:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment