mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-02-27 15:02:41 +00:00
Ignore unrelated events
This commit is contained in:
@@ -91,12 +91,16 @@ namespace Emby.Server.Implementations.Syncplay
|
||||
|
||||
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)
|
||||
{
|
||||
LeaveGroup(e.Session);
|
||||
var user = e.Session;
|
||||
if (!IsUserInGroup(user)) return;
|
||||
LeaveGroup(user);
|
||||
}
|
||||
|
||||
private bool IsUserInGroup(SessionInfo user)
|
||||
|
||||
Reference in New Issue
Block a user