bug fix for file_seed

cannot return a deferred in inlineCallbacks, it must be a value
This commit is contained in:
Job Evers-Meltzer 2017-01-11 11:35:01 -06:00
parent 1b2c46e224
commit 8075ced1af

View file

@ -1677,7 +1677,8 @@ class Daemon(AuthJSONRPCServer):
msg = ( msg = (
"File was already being seeded" if status == 'start' else "File was already stopped" "File was already being seeded" if status == 'start' else "File was already stopped"
) )
defer.returnValue(self._render_response(msg)) response = yield self._render_response(msg)
defer.returnValue(response)
@AuthJSONRPCServer.auth_required @AuthJSONRPCServer.auth_required
def jsonrpc_delete_lbry_file(self, p): def jsonrpc_delete_lbry_file(self, p):