Skip to content

Commit

Permalink
libflux/rpc: stop continuation on rpc completion
Browse files Browse the repository at this point in the history
  • Loading branch information
garlick committed Jul 23, 2015
1 parent 2ea8438 commit cca0a95
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/common/libflux/rpc.c
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,8 @@ static void rpc_cb (flux_t h, flux_msg_watcher_t *w,
rpc->rx_msg = NULL;
}
done: /* no good way to report flux_requeue() errors */
;
if (flux_rpc_completed (rpc))
flux_msg_watcher_stop (rpc->h, rpc->w);
}

int flux_rpc_then (flux_rpc_t *rpc, flux_then_f cb, void *arg)
Expand Down

0 comments on commit cca0a95

Please sign in to comment.