mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-09-19 00:15:41 +00:00
Return the argument passed to the callback in a deferred callback, otherwise twisted will replace the deferred result with 'None'
This commit is contained in:
parent
420ccfc925
commit
af61c29527
@ -139,6 +139,7 @@ class BaseMediaResource(Resource):
|
|||||||
@download.addBoth
|
@download.addBoth
|
||||||
def callback(media_info):
|
def callback(media_info):
|
||||||
del self.downloads[key]
|
del self.downloads[key]
|
||||||
|
return media_info
|
||||||
return download
|
return download
|
||||||
|
|
||||||
@defer.inlineCallbacks
|
@defer.inlineCallbacks
|
||||||
|
Loading…
Reference in New Issue
Block a user