Commit 084e8e54 authored by Leigh B. Stoller's avatar Leigh B. Stoller

Fix bug in event unregistration; be sure to null out the handle so it

tries to connect later. We started seeing this with pubsub when the
server dies, so I expect our failure mode is different!
parent 13df0bac
/*
* EMULAB-COPYRIGHT
* Copyright (c) 2000-2004 University of Utah and the Flux Group.
* Copyright (c) 2000-2004, 2007 University of Utah and the Flux Group.
* All rights reserved.
*/
#ifdef EVENTSYS
......@@ -58,11 +58,8 @@ bievent_shutdown(void)
address_tuple_free(tuple);
tuple = NULL;
}
if (!event_unregister(event_handle)) {
error("Unable to unregister from event system!\n");
event_handle = NULL;
return 1;
}
event_unregister(event_handle);
event_handle = NULL;
}
return 0;
}
......
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