]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/lib/bsock.c
Fix get_basename() -- rewrite
[bacula/bacula] / bacula / src / lib / bsock.c
index cc3231b2c0ae02541c932ab1e0a5ab807b488984..2fee52365d241c5d34ca60419830af5e984f5e84 100644 (file)
@@ -811,6 +811,13 @@ int BSOCK::set_blocking()
 #endif
 }
 
+void BSOCK::set_killable(bool killable)
+{
+   if (m_jcr) {
+      m_jcr->set_killable(killable);
+   }
+}
+
 /*
  * Restores socket flags
  */
@@ -1035,7 +1042,7 @@ bool BSOCK::authenticate_director(const char *name, const char *password,
       return false;
    }
 
-  dir->stop_timer();
+   dir->stop_timer();
    Dmsg1(10, "<dird: %s", dir->msg);
    if (strncmp(dir->msg, OKhello, sizeof(OKhello)-1) != 0) {
       bsnprintf(response, response_len, _("Director at \"%s:%d\" rejected Hello command\n"),