Skip to content

Commit

Permalink
fixed linux
Browse files Browse the repository at this point in the history
  • Loading branch information
nathan-fiscaletti committed Oct 24, 2024
1 parent 9b110b3 commit 2ef27b7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ This is a simple implementation of a cross-platform key logger in Go.
## Supported Platforms

- Windows
- Linux (code is untested)
- Linux

## Usage

Expand Down
3 changes: 2 additions & 1 deletion pkg/keyboard/keyboard_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,10 @@ func (k keyboardLinux) Events(ctx context.Context) (chan KeyboardEvent, error) {
if err != nil {
return nil, err
}
defer file.Close()

go func() {
defer file.Close()

for {
event := inputEvent{}
buffer := make([]byte, eventSize)
Expand Down

0 comments on commit 2ef27b7

Please sign in to comment.