diff options
Diffstat (limited to 'Emby.Dlna/Eventing/EventManager.cs')
| -rw-r--r-- | Emby.Dlna/Eventing/EventManager.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Emby.Dlna/Eventing/EventManager.cs b/Emby.Dlna/Eventing/EventManager.cs index 67eac640e1..0638cff897 100644 --- a/Emby.Dlna/Eventing/EventManager.cs +++ b/Emby.Dlna/Eventing/EventManager.cs @@ -85,7 +85,7 @@ namespace Emby.Dlna.Eventing int val; - if (int.TryParse(header, NumberStyles.Any, _usCulture, out val)) + if (int.TryParse(header, NumberStyles.Integer, _usCulture, out val)) { return val; } @@ -118,7 +118,7 @@ namespace Emby.Dlna.Eventing }; response.Headers["SID"] = subscriptionId; - response.Headers["TIMEOUT"] = string.IsNullOrWhiteSpace(requestedTimeoutString) ? ("SECOND-" + timeoutSeconds.ToString(_usCulture)) : requestedTimeoutString; + response.Headers["TIMEOUT"] = string.IsNullOrEmpty(requestedTimeoutString) ? ("SECOND-" + timeoutSeconds.ToString(_usCulture)) : requestedTimeoutString; return response; } |
