aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2020-10-11 00:00:14 +0200
committerTeddy Wing2020-10-11 00:00:14 +0200
commit4548fe81b21cbeb7242fd2a6d5e462827f857e31 (patch)
tree72559c6c11eb9577f404733fa852be93c077933e
parent62a560b5b332cb79f57f74c85f6fec585a94d3b6 (diff)
downloadDrop-Serve-4548fe81b21cbeb7242fd2a6d5e462827f857e31.tar.bz2
Server(stop): Use `NSTask terminate` instead of `interrupt`
Noticed that sometimes the server wasn't stopped when it should have been. Thought maybe I should use `terminate` instead of `interrupt` to be sure that the process exits.
-rw-r--r--Drop Serve/Server.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/Drop Serve/Server.m b/Drop Serve/Server.m
index db04a61..21da986 100644
--- a/Drop Serve/Server.m
+++ b/Drop Serve/Server.m
@@ -27,7 +27,7 @@
+ (void)stop
{
- [_process interrupt];
+ [_process terminate];
[_process dealloc];
}