We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 67842fc commit 0fe6f2eCopy full SHA for 0fe6f2e
src/hooks/dhcp/high_availability/ha_callouts.cc
@@ -429,10 +429,12 @@ int load(LibraryHandle& handle) {
429
/// @return 0 if deregistration was successful, 1 otherwise
430
int unload() {
431
if (impl) {
432
- IOServiceMgr::instance().unregisterIOService(impl->getIOService());
433
- impl->getIOService()->stopAndPoll();
+ IOServicePtr io_service = impl->getIOService();
+ IOServiceMgr::instance().unregisterIOService(io_service);
434
+ io_service->stopAndPoll();
435
+ impl.reset();
436
437
}
- impl.reset();
438
LOG_INFO(ha_logger, HA_DEINIT_OK);
439
return (0);
440
0 commit comments