diff --git a/src/org/kde/kdeconnect/Plugins/MprisPlugin/MprisMediaSession.java b/src/org/kde/kdeconnect/Plugins/MprisPlugin/MprisMediaSession.java index bd846665..825f8b83 100644 --- a/src/org/kde/kdeconnect/Plugins/MprisPlugin/MprisMediaSession.java +++ b/src/org/kde/kdeconnect/Plugins/MprisPlugin/MprisMediaSession.java @@ -264,15 +264,15 @@ public class MprisMediaSession implements return; } + //Make sure our information is up-to-date + MprisPlugin.MprisPlayer currentPlayer = updateCurrentPlayer(); + Device device = KdeConnect.getInstance().getDevice(notificationDevice); if (device == null) { closeMediaNotification(); return; } - //Make sure our information is up-to-date - MprisPlugin.MprisPlayer currentPlayer = updateCurrentPlayer(); - //If the player disappeared (and no other playing one found), just remove the notification if (currentPlayer == null) { closeMediaNotification();