bugfixing

This commit is contained in:
caue 2020-03-30 00:40:05 -03:00
parent 9f960b4d26
commit e047a93060
2 changed files with 5 additions and 1 deletions

4
go.mod
View File

@ -1 +1,3 @@
module github.com/cauefcr/ghook
module github.com/cauefcr/ghook
go 1.14

View File

@ -265,6 +265,7 @@ func KeychartoRawcode(kc string) uint16 {
// returns event channel
func Start() chan Event {
asyncon = true
ev = make(chan Event, 1024)
go C.startev()
go func() {
for {
@ -286,6 +287,7 @@ func End() {
for len(ev) != 0 {
<-ev
}
close(ev)
asyncon = false
}