Fix regression in reading stratum messages (#2450)

It was introduced in #2418, it turns out std read_line always appends to
the string, not writes from the beginning, so when we have multiple
workers to read from all messages are concatenated
This commit is contained in:
hashmap 2019-01-22 20:26:30 +01:00 committed by Ignotus Peverell
parent f8aab05d76
commit 55f4ee3166

View file

@ -301,6 +301,8 @@ impl StratumServer {
}
};
the_message.clear();
let mut stratum_stats = stratum_stats.write();
let worker_stats_id = stratum_stats
.worker_stats