Fixed: Fatal error will not be logged when browser is closed (linux/osx)

This commit is contained in:
Mark McDowall 2014-02-10 01:25:06 -08:00
parent 267c97052e
commit 2d50957baa
1 changed files with 6 additions and 0 deletions

View File

@ -238,6 +238,12 @@ namespace Microsoft.AspNet.SignalR.Infrastructure
if (command == null) if (command == null)
{ {
var platform = (int)Environment.OSVersion.Platform;
if (platform == 4 || platform == 6 || platform == 128)
{
return;
}
throw new SerializationException("Couldn't parse message " + message.Value); throw new SerializationException("Couldn't parse message " + message.Value);
} }