]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/dird/msgchan.c
Prevent connecting with the Console::m_at_main_prompt member.
[bacula/bacula] / bacula / src / dird / msgchan.c
index 0a29de1e0ed211d3deb434e26131bdb4726bb26d..e6f85cee4958d7987cb2917d74849f55d12dbe29 100644 (file)
@@ -344,6 +344,7 @@ extern "C" void msg_thread_cleanup(void *arg)
    pthread_cond_broadcast(&jcr->term_wait); /* wakeup any waiting threads */
    Dmsg1(100, "=== End msg_thread. use=%d\n", jcr->use_count());
    free_jcr(jcr);                     /* release jcr */
+   db_thread_cleanup();               /* remove thread specific data */
 }
 
 /*