another small fix
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing

This commit is contained in:
Michele Scandura 2021-09-23 15:44:56 +01:00
parent a4eb4d2b88
commit 4d59131905

View file

@ -171,12 +171,11 @@ namespace Sledgemapper.Api.Hubs
try try
{ {
await Clients.Group(session.SessionId.ToString()).RemovePlayer(new Player { UserId = userId }); //send remove player await Clients.GroupExcept(session.SessionId.ToString(), new List<string> { Context.ConnectionId }).RemovePlayer(new Player { UserId = userId }); //send remove player
} }
catch (Exception e) catch (Exception e)
{ {
Console.WriteLine(e); Console.WriteLine(e);
} }
_dbContext.SessionUsers.Remove(userSession); _dbContext.SessionUsers.Remove(userSession);
} }