]> git.meshlink.io Git - meshlink/blobdiff - src/net.c
Fixed typos. When terminating a connection, it's status is not only set to
[meshlink] / src / net.c
index f8c7306d18bdc7512f20b082e18b1b8aa2a61e2a..60b7b7920fecae7dd83aca744fe3a548490926b5 100644 (file)
--- a/src/net.c
+++ b/src/net.c
@@ -821,11 +821,12 @@ cp
 
   if(cl->status.outgoing)
     {
-      alarm(5);
       signal(SIGALRM, sigalrm_handler);
+      alarm(5);
       syslog(LOG_NOTICE, "Try to re-establish outgoing connection in 5 seconds.");
     }
   
+  cl->status.active = 0;
   cl->status.remove = 1;
 cp
 }