1
0
mom040267 11 жил өмнө
parent
commit
cf93f38218

+ 1 - 3
src/apps/relay/dbdrivers/dbd_sqlite.c

@@ -46,9 +46,7 @@ static int sqlite_init_multithreaded(void) {
 
 	if (sqlite3_threadsafe() > 0) {
 		int retCode = sqlite3_config(SQLITE_CONFIG_SERIALIZED);
-		if (retCode == SQLITE_OK) {
-			TURN_LOG_FUNC(TURN_LOG_LEVEL_INFO, "Can now use sqlite on multiple threads, using the same connection\n");
-		} else {
+		if (retCode != SQLITE_OK) {
 			TURN_LOG_FUNC(TURN_LOG_LEVEL_ERROR, "setting sqlite thread safe mode to serialized failed!!! return code: %d\n", retCode);
 			return -1;
 		}