mirror of
https://bitbucket.org/anguist/ntpa
synced 2025-10-05 18:41:13 +00:00
Dont use signals on Windows
This commit is contained in:
@ -47,6 +47,10 @@ namespace Ntp.Common.System
|
||||
|
||||
public void Start()
|
||||
{
|
||||
// Signal handler is only supported on Unix platforms
|
||||
if (Environment.OSVersion.Platform != PlatformID.Unix)
|
||||
return;
|
||||
|
||||
var signalHandler = new Thread(Execute);
|
||||
signalHandler.Start();
|
||||
}
|
||||
|
Reference in New Issue
Block a user