mirror of
https://github.com/Radarr/Radarr.git
synced 2026-04-26 22:46:53 -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