Move mutex to the event handlers so that the app is only restarted (#84) when the current events have been processed. This avoids having some relevant work being stopped off halfway due to some unrelated server failure.
Not having this might not be a problem at the moment because we're supposed to be blocking the application while some event is being executed (#68). In any case it's better to have it.
Move mutex to the event handlers so that the app is only restarted (#84) when the current events have been processed. This avoids having some relevant work being stopped off halfway due to some unrelated server failure.
Not having this might not be a problem at the moment because we're supposed to be blocking the application while some event is being executed (#68). In any case it's better to have it.