another small fix
This commit is contained in:
parent
a4eb4d2b88
commit
4d59131905
1 changed files with 1 additions and 2 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue