Skip to content

Commit

Permalink
Merge pull request #15 from robotn/fix-pr
Browse files Browse the repository at this point in the history
Update End() function, Fixed close chan too fast
  • Loading branch information
vcaesar authored May 31, 2020
2 parents a945300 + e29fdb4 commit 5802a7a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hook.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import (

const (
// Version get the gohook version
Version = "v0.30.1.83, Sierra Nevada!"
Version = "v0.30.2.88, Sierra Nevada!"

// HookEnabled honk enable status
HookEnabled = 1 // iota
Expand Down Expand Up @@ -244,6 +244,7 @@ func End() {
asyncon = false
C.endPoll()
C.stop_event()
time.Sleep(time.Millisecond * 10)

for len(ev) != 0 {
<-ev
Expand Down

0 comments on commit 5802a7a

Please sign in to comment.