diff --git a/xwords4/relay/dbmgr.cpp b/xwords4/relay/dbmgr.cpp index 5d222589a..d951e8e27 100644 --- a/xwords4/relay/dbmgr.cpp +++ b/xwords4/relay/dbmgr.cpp @@ -70,6 +70,8 @@ DBMgr::DBMgr() pthread_key_create( &m_conn_key, destr_function ); + pthread_mutex_init( &m_haveNoMessagesMutex, NULL ); + /* Now figure out what the largest cid currently is. There must be a way to get postgres to do this for me.... */ /* const char* query = "SELECT cid FROM games ORDER BY cid DESC LIMIT 1"; */