Skip to content

Commit

Permalink
Some issue with registering the correct functions for the api
Browse files Browse the repository at this point in the history
There might be a bug causing issues with plugin functions not being
registered with the json api.

This should eb investigated
  • Loading branch information
bendikro committed Sep 15, 2020
1 parent 2c041e4 commit 7a53887
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion deluge/ui/web/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -791,6 +791,10 @@ def start(self):

component.get('Web').enable()

# TODO: Check if correct
# Plugins must be enabled here to register exported json functions
self.plugins.enable_plugins()

if self.daemon:
reactor.run()

Expand Down Expand Up @@ -838,7 +842,10 @@ def stop(self):
except KeyError:
pass

self.plugins.disable_plugins()
# TODO: Check if this is correct
# Disabling plugins removes them from enabled_plugins list in web.conf???
# self.plugins.disable_plugins()

log.debug('Saving configuration file')
self.config.save()

Expand Down

0 comments on commit 7a53887

Please sign in to comment.