Skip to content

Commit 96a33ad

Browse files
committed
autohost are removed from db when they are removed from the server
1 parent df456f8 commit 96a33ad

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

ZkLobbyServer/ServerBattle.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,7 @@ public void SwitchAutohost(bool autohost, string founder)
238238
using (var db = new ZkDataContext())
239239
{
240240
db.Autohosts.Remove(db.Autohosts.Where(x => x.AutohostID == dbAutohostIndex).FirstOrDefault());
241+
db.SaveChanges();
241242
}
242243
}
243244
}

0 commit comments

Comments
 (0)