X-Git-Url: https://www.tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Ftincctl.c;h=54816a3de1c0737b4a8db3a6ae649f86436abe12;hb=a3f04cf74463e783eeddd45e998c1d15db0f868a;hp=99f31b83151d6ca7c93d1032e0cf97e89b2ad824;hpb=ca989c0c8b19901cbd7664a9d2b42aa85c9c176e;p=tinc diff --git a/src/tincctl.c b/src/tincctl.c index 99f31b83..54816a3d 100644 --- a/src/tincctl.c +++ b/src/tincctl.c @@ -748,6 +748,14 @@ static bool remove_service(void) { return false; } + if(service) { + CloseServiceHandle(service); + } + + if(manager) { + CloseServiceHandle(manager); + } + fprintf(stderr, "%s service removed\n", identname); return true;