message: Don't set result or exception for cancelled future
diff: @@ -65,6 +65,9 @@ def _indy_loop_callback(command_handle: int, err, *args):
  (event_loop, future) = _futures.pop(command_handle)
  + if future.cancelled():
  + logger.debug("_indy_loop_callback: Future was cancelled earlier")
  + else:
  if err != ErrorCode.Success:
  logger.warning("_indy_loop_callback: Function returned error %i", err)
  future.set_exception(IndyError(ErrorCode(err)))
  