increase live stream analyze duration

This commit is contained in:
Luke Pulverenti
2017-06-19 14:14:15 -04:00
parent ce47f63389
commit 1de6b4607f
2 changed files with 14 additions and 6 deletions

View File

@@ -130,11 +130,18 @@ namespace SocketHttpListener.Net
var thisRef = (HttpListenerResponse)iar.AsyncState;
try
{
thisRef.OutputStream.EndWrite(iar);
try
{
thisRef.OutputStream.EndWrite(iar);
}
finally
{
thisRef.Close(false);
}
}
finally
catch (Exception)
{
thisRef.Close(false);
// In case response was disposed during this time
}
}, this);
}