Skip to content

Commit

Permalink
Remove use of time.Ticker.
Browse files Browse the repository at this point in the history
  • Loading branch information
gmallard committed Dec 23, 2019
1 parent a6046b3 commit 950baf2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions disconnect.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,13 +130,10 @@ func (c *Connection) getMessageData() (MessageData, error) {
md = <-c.input
} else {
c.log("DISCGETMD DUR -> ", d)
ticker := time.NewTicker(d)
select {
case _ = <-ticker.C:
case <-time.After(d):
me = EDISCTO
ticker.Stop()
case md = <-c.input:
ticker.Stop()
}
}
} else {
Expand Down
2 changes: 1 addition & 1 deletion version.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ var (

patch = "13" // Patch

mod = "-m.1" // Modification level
mod = "-m.2" // Modification level

// mod = ""
)
Expand Down

0 comments on commit 950baf2

Please sign in to comment.