mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-03-15 20:09:18 +01:00
pyln-client: Plugin, improve background comment
This commit is contained in:
parent
ad22535d34
commit
c286eb053f
1 changed files with 2 additions and 2 deletions
|
@ -630,8 +630,8 @@ class Plugin(object):
|
|||
try:
|
||||
result = self._exec_func(method.func, request)
|
||||
if not method.background:
|
||||
# Only if this is not an async (background) call do we need to
|
||||
# return the result, otherwise the callee will eventually need
|
||||
# Only if this is a synchronous (background=False) call do we need to
|
||||
# return the result. Otherwise the callee (method) will eventually need
|
||||
# to call request.set_result or request.set_exception to
|
||||
# return a result or raise an exception.
|
||||
request.set_result(result)
|
||||
|
|
Loading…
Add table
Reference in a new issue