Modified HttpListener.cs

This commit is contained in:
sta
2013-02-19 20:27:27 +09:00
parent f521779ed7
commit a376daedf0
24 changed files with 237 additions and 163 deletions

View File

@@ -459,6 +459,7 @@ namespace WebSocketSharp.Net {
IAsyncResult ares = InputStream.BeginRead (bytes, 0, length, null, null);
if (!ares.IsCompleted && !ares.AsyncWaitHandle.WaitOne (100))
return false;
if (InputStream.EndRead (ares) <= 0)
return true;
} catch {