mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 22:48:18 +00:00
Add message for failed database connection
This commit is contained in:
parent
32265d11e5
commit
58927375fc
|
@ -512,6 +512,8 @@ bool CSqlScore::SaveScoreThread(CSqlServer* pSqlServer, const CSqlData *pGameDat
|
|||
io_close(File);
|
||||
lock_unlock(ms_FailureFileLock);
|
||||
|
||||
pData->GameServer()->SendBroadcast("Database connection failed, score written to a file instead. Admins will add it manually in a few days.", -1);
|
||||
|
||||
return true;
|
||||
}
|
||||
lock_unlock(ms_FailureFileLock);
|
||||
|
|
Loading…
Reference in a new issue