Mercurial > sat_tmp
changeset 65:0bb020e9fd47
wokkel (pubsub): getNodes may be deferred
author | Goffi <goffi@goffi.org> |
---|---|
date | Wed, 24 Jul 2019 20:26:23 +0200 |
parents | c31558e6f2b5 |
children | 3f76f78b4ad6 |
files | sat_tmp/wokkel/pubsub.py |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/sat_tmp/wokkel/pubsub.py Fri Mar 01 19:47:55 2019 +0100 +++ b/sat_tmp/wokkel/pubsub.py Wed Jul 24 20:26:23 2019 +0200 @@ -1338,7 +1338,8 @@ resource = self.resource.locateResource(request) d = resource.getNodes(requestor, target, nodeIdentifier) elif nodeIdentifier: - d = self.getNodes(requestor, target) + d = defer.maybeDeferred(self.getNodes, requestor, target) + else: d = defer.succeed([])