Ignore unrelated events
This commit is contained in:
parent
10c2c62f07
commit
b3354ec637
|
@ -91,12 +91,16 @@ namespace Emby.Server.Implementations.Syncplay
|
||||||
|
|
||||||
void _sessionManager_SessionEnded(object sender, SessionEventArgs e)
|
void _sessionManager_SessionEnded(object sender, SessionEventArgs e)
|
||||||
{
|
{
|
||||||
LeaveGroup(e.SessionInfo);
|
var user = e.SessionInfo;
|
||||||
|
if (!IsUserInGroup(user)) return;
|
||||||
|
LeaveGroup(user);
|
||||||
}
|
}
|
||||||
|
|
||||||
void _sessionManager_PlaybackStopped(object sender, PlaybackStopEventArgs e)
|
void _sessionManager_PlaybackStopped(object sender, PlaybackStopEventArgs e)
|
||||||
{
|
{
|
||||||
LeaveGroup(e.Session);
|
var user = e.Session;
|
||||||
|
if (!IsUserInGroup(user)) return;
|
||||||
|
LeaveGroup(user);
|
||||||
}
|
}
|
||||||
|
|
||||||
private bool IsUserInGroup(SessionInfo user)
|
private bool IsUserInGroup(SessionInfo user)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user