daemon: adjustment for emane monitor shutdown to avoid locking

This commit is contained in:
Blake Harnden 2021-05-19 20:49:18 -07:00
parent 5bc3345d37
commit 6b5148566c

View file

@ -613,11 +613,11 @@ class EmaneManager:
self.doeventloop = False self.doeventloop = False
if self.service is not None: if self.service is not None:
self.service.breakloop() self.service.breakloop()
if self.eventmonthread is not None:
self.eventmonthread.join()
self.eventmonthread = None
# reset the service, otherwise nextEvent won"t work # reset the service, otherwise nextEvent won"t work
self.deleteeventservice() self.deleteeventservice()
if self.eventmonthread is not None:
self.eventmonthread.join()
self.eventmonthread = None
def eventmonitorloop(self) -> None: def eventmonitorloop(self) -> None:
""" """