forked from LBRYCommunity/lbry-sdk
add note about request.notifyFinish
This commit is contained in:
parent
64e9ce2bfa
commit
fc50a3242f
1 changed files with 3 additions and 0 deletions
|
@ -419,7 +419,10 @@ class LBRYDaemon(jsonrpc.JSONRPC):
|
|||
d = defer.maybeDeferred(function)
|
||||
else:
|
||||
d = defer.maybeDeferred(function, *args)
|
||||
|
||||
# cancel the response if the connection is broken
|
||||
request.notifyFinish().addErrback(self._responseFailed, d)
|
||||
|
||||
d.addErrback(self._ebRender, id)
|
||||
d.addCallback(self._cbRender, request, id, version)
|
||||
return server.NOT_DONE_YET
|
||||
|
|
Loading…
Reference in a new issue