add mono check
This commit is contained in:
parent
d091fe0e6e
commit
ad6f47329f
|
@ -161,6 +161,7 @@ namespace MediaBrowser.Server.Implementations.HttpServer.NetListener
|
|||
/// <returns>Task.</returns>
|
||||
private async Task ProcessWebSocketRequest(HttpListenerContext ctx)
|
||||
{
|
||||
#if !__MonoCS__
|
||||
try
|
||||
{
|
||||
var webSocketContext = await ctx.AcceptWebSocketAsync(null).ConfigureAwait(false);
|
||||
|
@ -180,6 +181,7 @@ namespace MediaBrowser.Server.Implementations.HttpServer.NetListener
|
|||
ctx.Response.StatusCode = 500;
|
||||
ctx.Response.Close();
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
private void HandleError(Exception ex, HttpListenerContext context)
|
||||
|
|
Loading…
Reference in New Issue
Block a user