Don't get stuck in SERVICE_CONTINUE_PENDING.
authorIain Patterson <me@iain.cx>
Mon, 13 Jan 2014 12:08:17 +0000 (12:08 +0000)
committerIain Patterson <me@iain.cx>
Mon, 13 Jan 2014 12:08:17 +0000 (12:08 +0000)
commite00dcf2fb5b991f381b75b0f96553f7e2e478361
tree4455da106c58187c1b5be5d10c5f0ff3407ffd57
parent34c981e18d1aa000857a9d9435d62e0837e41127
Don't get stuck in SERVICE_CONTINUE_PENDING.

If we received SERVICE_CONTROL_CONTINUE and the service wasn't paused we
would incorrectly set SERVICE_CONTINUE_PENDING status.

The Windows services console won't allow a user to attempt to send a
continue control to a running service but other applications, like say
NSSM itself, might happily try, then get confused when the status wasn't
set to SERVICE_RUNNING.
service.cpp