Avoid calling success multiple times
Avoid calling success multiple times

In case where onResult or onStream is called,
onSuccess might try to call success twice on
the promise.

lresende/toree-gateway,lresende/toree-gateway