Try harder not to restart the application when stopping.
authorIain Patterson <me@iain.cx>
Thu, 31 Oct 2013 13:23:55 +0000 (13:23 +0000)
committerIain Patterson <me@iain.cx>
Thu, 31 Oct 2013 13:25:19 +0000 (13:25 +0000)
commitdc414f5c8eb8a534e759fe5326c2026f9e9f71a7
tree71b06ced26279f9aecfd716fc0eaf2030e580f46
parentc50225935f0143fbe5fb37d906aa7e6e68f81040
Try harder not to restart the application when stopping.

Try even harder to avoid race conditions whereby one thread reacts to an
application exit and performs a restart even after another thread has
committed to handling a stop control.

Thanks Runner Mei.
service.cpp