Commit 85e73fa2 authored by Leigh B Stoller's avatar Leigh B Stoller
Browse files

Minor fix to event main loop; clear the loop flag if pubsub

returns an error, so we can retry. Just a bandaid, need to figure
out why pubsub is not reconnecting when the firewall idles the
connection out.
parent 25ad8978
/* /*
* Copyright (c) 2000-2014 University of Utah and the Flux Group. * Copyright (c) 2000-2016 University of Utah and the Flux Group.
* *
* {{{EMULAB-LICENSE * {{{EMULAB-LICENSE
* *
...@@ -476,9 +476,10 @@ event_main(event_handle_t handle) ...@@ -476,9 +476,10 @@ event_main(event_handle_t handle)
if (handle->mainloop(handle->server, &handle->do_loop, &handle->status)) { if (handle->mainloop(handle->server, &handle->do_loop, &handle->status)) {
ERROR("Event mainloop failed: "); ERROR("Event mainloop failed: ");
pubsub_error_fprintf(stderr, &handle->status); pubsub_error_fprintf(stderr, &handle->status);
handle->do_loop = 0;
return 0; return 0;
} }
handle->do_loop = 0;
return 1; return 1;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment