Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Make cassini not blow up as much.

- When checking is client connected fails, just return false.
  • Loading branch information...
commit 178e5a9ab3f18f04f4f681eed75441789e11e907 1 parent af30333
David Fowler davidfowl authored
Showing with 11 additions and 1 deletion.
  1. +11 −1 SignalR.Hosting.AspNet/AspNetResponse.cs
12 SignalR.Hosting.AspNet/AspNetResponse.cs
View
@@ -1,4 +1,5 @@
using System;
+using System.Diagnostics;
using System.Linq.Expressions;
using System.Reflection;
using System.Threading.Tasks;
@@ -31,7 +32,16 @@ public bool IsClientConnected
return true;
}
#endif
- return _context.Response.IsClientConnected;
+ try
+ {
+ return _context.Response.IsClientConnected;
+ }
+ catch (Exception ex)
+ {
+ Trace.TraceError("SignalR AspNet host error checking for connected clients: {0}", ex.Message);
+ // This happens on cassini (built in webserver in VS)
+ return false;
+ }
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.