]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#2575] reset the callback to trivial std::function so that unloaded symbols in hooks...
authorRazvan Becheriu <razvan@isc.org>
Mon, 23 Jan 2023 21:38:09 +0000 (23:38 +0200)
committerAndrei Pavel <andrei@isc.org>
Tue, 18 Jul 2023 09:27:13 +0000 (12:27 +0300)
src/lib/asiolink/interval_timer.cc

index 2cda9b0085b7ec74737dd8ad2fc588f52dbf34ea..cc45d516e9abd157e22f2c473be227bc4c23020e 100644 (file)
@@ -64,6 +64,7 @@ public:
         lock_guard<mutex> lk (mutex_);
         timer_.cancel();
         interval_ = 0;
+        cbfunc_ = std::function<void()>();
     }
 
     /// @brief Get the timer interval.