]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - mysql_selector.c
mysql_selector: reset mysql_lock to zero after destroying the lock.
[paraslash.git] / mysql_selector.c
index dedc96cc8ec6961bf118c78586bb3c5be037fb04..07cbfc65878bfc43ca4bb1fb90c4fa3a216b0536 100644 (file)
@@ -2270,6 +2270,7 @@ static void shutdown_connection(void)
                ret = mutex_destroy(mysql_lock);
                if (ret < 0)
                        PARA_ERROR_LOG("%s\n", PARA_STRERROR(-ret));
+               mysql_lock = 0;
        }
 }