]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/lib/watchdog.c
More changes to ensure that during thread switches the jcr
[bacula/bacula] / bacula / src / lib / watchdog.c
index c51b88a6c9530a7906454fc111d8f18c425b84bf..770597dbbac3729f98a1c40dc170365a6f896213 100644 (file)
@@ -246,6 +246,7 @@ extern "C" void *watchdog_thread(void *arg)
    struct timezone tz;
    utime_t next_time;
 
+   set_jcr_in_tsd(INVALID_JCR);
    Dmsg0(800, "NicB-reworked watchdog thread entered\n");
 
    while (!quit) {