aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2014-06-20 13:24:43 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2014-06-20 13:24:43 -0400
commit5ce3ed2fb47ab35c3e47959126e7656c9054f452 (patch)
tree1993efb17f2c5ada65fb67072d929bf159815e18
parentdf7eb126ad9853b2df9f4b5125c867f7b17b3fc8 (diff)
play to fix
-rw-r--r--MediaBrowser.Dlna/PlayTo/Device.cs9
1 files changed, 6 insertions, 3 deletions
diff --git a/MediaBrowser.Dlna/PlayTo/Device.cs b/MediaBrowser.Dlna/PlayTo/Device.cs
index 72ea1d70e..f13c52c66 100644
--- a/MediaBrowser.Dlna/PlayTo/Device.cs
+++ b/MediaBrowser.Dlna/PlayTo/Device.cs
@@ -294,12 +294,15 @@ namespace MediaBrowser.Dlna.PlayTo
await 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();
}