Fixed issue where thread interrupt would cause the service framework would throw an error because interrupting the waiting thread throws an exception.
parent
0c860a543d
commit
2da779e2be
|
@ -323,7 +323,6 @@ namespace WifiSitter
|
|||
|
||||
protected override void OnStopImpl() {
|
||||
_shutdownEvent.Set();
|
||||
_thread.Interrupt();
|
||||
if (!_thread.Join(3000)) {
|
||||
_thread.Abort();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue