Skip to content

Commit

Permalink
examples/events: close connection
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagokokada committed Aug 31, 2024
1 parent 9ed06b1 commit 48aa02e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion examples/events/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ func (e *ev) ActiveWindow(w event.ActiveWindow) {
}

func main() {
c := event.MustEventClient()
c := event.MustClient()
defer c.Close()

event.Subscribe(
c, &ev{},
event.EventWorkspace,
Expand Down

0 comments on commit 48aa02e

Please sign in to comment.