Race condition during service shutdown

There’s a race condition in the service shutdown code which is most likely to show up if there’s an exception thrown from your implementation of ContinueService(), PauseService() or StopService() but that could show up during any service shutdown sequence.

This race condition is present in all versions of the Service Library and so far has only been reported by one client. A fix is available, please contact me directly if you need it, or think you need it. The fix will be included in the 6.1 release of The Server Framework which currently has no scheduled release date.

Thanks to Richard and Lyndel at Vexis for reporting this issue.