diff --git a/src/zm_event.cpp b/src/zm_event.cpp index 73a0a22ad..231cd7978 100644 --- a/src/zm_event.cpp +++ b/src/zm_event.cpp @@ -133,6 +133,7 @@ Event::Event( db_mutex.lock(); } id = mysql_insert_id(&dbconn); + db_mutex.unlock(); if ( !SetPath(storage) ) { // Try another