From 8d20621e19781046d79b61340d89cbb9084f7393 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Sat, 13 Sep 2014 18:20:08 -0400 Subject: [PATCH] change manual reset event --- .../HttpServer/SocketSharp/WebSocketSharpListener.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MediaBrowser.Server.Implementations/HttpServer/SocketSharp/WebSocketSharpListener.cs b/MediaBrowser.Server.Implementations/HttpServer/SocketSharp/WebSocketSharpListener.cs index 19bc93861..d39d82e80 100644 --- a/MediaBrowser.Server.Implementations/HttpServer/SocketSharp/WebSocketSharpListener.cs +++ b/MediaBrowser.Server.Implementations/HttpServer/SocketSharp/WebSocketSharpListener.cs @@ -15,7 +15,7 @@ namespace MediaBrowser.Server.Implementations.HttpServer.SocketSharp public class WebSocketSharpListener : IHttpListener { private HttpListener _listener; - private readonly ManualResetEventSlim _listenForNextRequest = new ManualResetEventSlim(false); + private readonly ManualResetEvent _listenForNextRequest = new ManualResetEvent(false); private readonly ILogger _logger; private readonly Action _endpointListener; @@ -64,7 +64,7 @@ namespace MediaBrowser.Server.Implementations.HttpServer.SocketSharp try { _listener.BeginGetContext(ListenerCallback, _listener); - _listenForNextRequest.Wait(); + _listenForNextRequest.WaitOne(); } catch (Exception ex) {