Skip to content

Commit

Permalink
core: avoid draining timer channel.
Browse files Browse the repository at this point in the history
  • Loading branch information
dnldd committed May 27, 2020
1 parent 5c58b22 commit 3e9ed08
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions client/core/core.go
Original file line number Diff line number Diff line change
Expand Up @@ -2359,8 +2359,6 @@ func handleTradeSuspensionMsg(c *Core, dc *dexConnection, msg *msgjson.Message)
// Attempt to cancel and remove pending suspends.
if sched := dc.pendingSuspends[sp.MarketID]; sched != nil {
if !sched.Stop() {
// Drain the channel.
<-sched.C
return fmt.Errorf("market %s for dex %s is already suspended",
sp.MarketID, dc.acct.url)
}
Expand Down

0 comments on commit 3e9ed08

Please sign in to comment.