another small fix
This commit is contained in:
parent
a4eb4d2b88
commit
4d59131905
@ -171,12 +171,11 @@ namespace Sledgemapper.Api.Hubs
|
||||
|
||||
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)
|
||||
{
|
||||
Console.WriteLine(e);
|
||||
|
||||
}
|
||||
_dbContext.SessionUsers.Remove(userSession);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user