The Free Software Media System - Server Backend & API
play to fix
Luke Pulverenti5ce3ed2fb47a
diff --git a/MediaBrowser.Dlna/PlayTo/Device.cs b/MediaBrowser.Dlna/PlayTo/Device.csindex 72ea1d70e2..f13c52c663 100644--- a/MediaBrowser.Dlna/PlayTo/Device.cs+++ b/MediaBrowser.Dlna/PlayTo/Device.cs@@ -294,12 +294,15 @@ namespace MediaBrowser.Dlna.PlayToawait Task.Delay(50).ConfigureAwait(false);- // If it's already in a playing state, this will throw an error- // TODO: What if state is transitioning?- if (TransportState != TRANSPORTSTATE.PLAYING)+ try{await SetPlay().ConfigureAwait(false);}+ catch+ {+ // Some devices will throw an error if you tell it to play when it's already playing+ // Others won't+ }RestartTimer();}