From 32077133e95d829ede2ef63ae845c331c2853f1e Mon Sep 17 00:00:00 2001 From: stephb9959 Date: Fri, 11 Mar 2022 23:05:23 -0800 Subject: [PATCH] Initial commit --- src/VenueWatcher.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/VenueWatcher.cpp b/src/VenueWatcher.cpp index 2da08d2..2e1a663 100644 --- a/src/VenueWatcher.cpp +++ b/src/VenueWatcher.cpp @@ -29,7 +29,8 @@ namespace OpenWifi { auto State = MsgContent->Payload(); auto It = APs_.find(MsgContent->SerialNumber()); if(It!=end(APs_)) { - It->second->Update(MsgContent->Payload()); + std::thread T([&] {It->second->Update(MsgContent->Payload());}); + T.detach(); } } catch (const Poco::Exception &E) { Logger().log(E);