]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/filed/heartbeat.c
Add comment to crypto.h
[bacula/bacula] / bacula / src / filed / heartbeat.c
index 9eaea9349a598ba4cc82f1829af052d5b00f4b94..32496e7a8e07d861d9d92a4fc79a7f700f9127b2 100644 (file)
@@ -127,8 +127,6 @@ void stop_heartbeat_monitor(JCR *jcr)
    while (jcr->hb_bsock == NULL && cnt++ < 200) {
       bmicrosleep(0, 50000);         /* wait for start */
    }
-   if (!jcr->hb_bsock) {
-   }
 
    if (jcr->hb_bsock) {
       jcr->hb_bsock->timed_out = 1;   /* set timed_out to terminate read */
@@ -138,6 +136,7 @@ void stop_heartbeat_monitor(JCR *jcr)
       jcr->hb_dir_bsock->timed_out = 1;   /* set timed_out to terminate read */
       jcr->hb_dir_bsock->terminated = 1;  /* set to terminate read */
    }
+   Dmsg0(100, "Send kill to heartbeat id\n");
    pthread_kill(jcr->heartbeat_id, TIMEOUT_SIGNAL);  /* make heartbeat thread go away */
    bmicrosleep(0, 50000);
    cnt = 0;