From 3ebaae3b79920c474b637eaf07c094315d6e5406 Mon Sep 17 00:00:00 2001 From: Sammy Sammon Date: Mon, 12 Dec 2016 12:27:22 +1000 Subject: [PATCH] Fixed Stats bug Seriously, how did this not break before --- Stats.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Stats.cs b/Stats.cs index 92a9f61..b1c91d0 100644 --- a/Stats.cs +++ b/Stats.cs @@ -38,6 +38,8 @@ public StatsStream() private void ParseStats(string data) { + if (data.Trim() == "") + return; DataContractJsonSerializer s = new DataContractJsonSerializer(typeof(Stats)); using (var stream = new MemoryStream(Encoding.UTF8.GetBytes(data))) {