Fix bug: backend didn't cleanup stale players
This commit is contained in:
parent
9fc0408d16
commit
23d9b5647e
1 changed files with 1 additions and 1 deletions
|
@ -971,7 +971,7 @@ impl DBHandler {
|
||||||
|
|
||||||
fn cleanup_stale_players(&self, conn: Option<&Connection>) -> Result<(), String> {
|
fn cleanup_stale_players(&self, conn: Option<&Connection>) -> Result<(), String> {
|
||||||
if conn.is_none() {
|
if conn.is_none() {
|
||||||
return self.cleanup_stale_games(Some(&self.get_conn(DBFirstRun::NotFirstRun)?));
|
return self.cleanup_stale_players(Some(&self.get_conn(DBFirstRun::NotFirstRun)?));
|
||||||
}
|
}
|
||||||
let conn = conn.unwrap();
|
let conn = conn.unwrap();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue