]> tinc-vpn.org Git - tinc/blobdiff - src/control.c
Gracefully exit through the main thread.
[tinc] / src / control.c
index 73d79166700b0d631e01d0df7a49d61bfe941cfc..2e6be57679f0fbb5799ac25535ee3a423abe57bb 100644 (file)
@@ -54,7 +54,7 @@ bool control_h(connection_t *c, char *request) {
 
        switch (type) {
                case REQ_STOP:
-                       abort();
+                       running = false;
                        return control_ok(c, REQ_STOP);
 
                case REQ_DUMP_NODES: