diff --git a/ConnectionProviders/StratumConnectionProvider/StratumConnectionProvider.cs b/ConnectionProviders/StratumConnectionProvider/StratumConnectionProvider.cs index ac14326..721ca0a 100644 --- a/ConnectionProviders/StratumConnectionProvider/StratumConnectionProvider.cs +++ b/ConnectionProviders/StratumConnectionProvider/StratumConnectionProvider.cs @@ -238,6 +238,9 @@ private async Task OnReceived(AsyncTcpClient client, int count) { var jsonArr = jsonRaw.Split('\n').Where(str => !String.IsNullOrEmpty(str)); foreach (var json in jsonArr) { + if (string.IsNullOrEmpty(json)) { + continue; + }; if (json.Contains("\"method\"")) { var command = JsonSerializer.Deserialize(json);