diff --git a/lime/system/System.hx b/lime/system/System.hx index 87802ca61..d8e85ecb4 100644 --- a/lime/system/System.hx +++ b/lime/system/System.hx @@ -117,7 +117,7 @@ class System { public static function exit (code:Int):Void { - #if sys + #if (sys && desktop) #if !macro if (Application.current != null) {