Skip to content

Commit

Permalink
Fix regression in reading stratum messages (#2450)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
hashmap authored and ignopeverell committed Jan 22, 2019
1 parent f8aab05 commit 55f4ee3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions servers/src/mining/stratumserver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,8 @@ impl StratumServer {
}
};

the_message.clear();

let mut stratum_stats = stratum_stats.write();
let worker_stats_id = stratum_stats
.worker_stats
Expand Down

0 comments on commit 55f4ee3

Please sign in to comment.