shmmonitor: optimize startup to avoid repeated start

This commit is contained in:
Alexey Rybalchenko
2021-03-31 10:57:29 +02:00
parent effba534f0
commit 72175e5757

View File

@@ -101,6 +101,7 @@ class Manager
} }
if (autolaunchMonitor) { if (autolaunchMonitor) {
boost::interprocess::scoped_lock<boost::interprocess::named_mutex> lock(fShmMtx);
StartMonitor(fShmId); StartMonitor(fShmId);
} }