Send back notification if client id isn't found.

This commit is contained in:
Jared Goodwin 2020-04-20 17:17:22 -07:00
parent 373960710f
commit d1757b15c9

View File

@ -166,7 +166,10 @@ namespace Remotely.Server.Services
screenCasterID = RCDeviceSocketHub.SessionInfoList.First(x => x.Value.AttendedSessionID == screenCasterID).Value.RCDeviceSocketID;
}
RCDeviceSocketHub.SessionInfoList.TryGetValue(screenCasterID, out var sessionInfo);
if (!RCDeviceSocketHub.SessionInfoList.TryGetValue(screenCasterID, out var sessionInfo))
{
return Clients.Caller.SendAsync("SessionIDNotFound");
}
ScreenCasterID = screenCasterID;
RequesterName = requesterName;