mirror of
https://github.com/Sonarr/Sonarr.git
synced 2026-04-27 23:06:29 -04:00
OS X and linux can be treated separately
This commit is contained in:
@@ -53,7 +53,7 @@ namespace NzbDrone.Host
|
||||
|
||||
public void Start()
|
||||
{
|
||||
if (OsInfo.IsLinux)
|
||||
if (OsInfo.IsMono)
|
||||
{
|
||||
Console.CancelKeyPress += (sender, eventArgs) => _processProvider.Kill(_processProvider.GetCurrentProcess().Id);
|
||||
}
|
||||
@@ -90,7 +90,7 @@ namespace NzbDrone.Host
|
||||
|
||||
public void Handle(ApplicationShutdownRequested message)
|
||||
{
|
||||
if (OsInfo.IsLinux)
|
||||
if (OsInfo.IsMono)
|
||||
{
|
||||
_processProvider.Kill(_processProvider.GetCurrentProcess().Id);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user