Skip to content

Commit

Permalink
bugfix: silly mistake in runLoop method, renamed closed to ok (recv c…
Browse files Browse the repository at this point in the history
…han)
  • Loading branch information
lololozhkin committed Feb 17, 2023
1 parent 3d08e57 commit 39c076e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions socketmode/socketmode_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@ func (r *SocketmodeHandler) RunEventLoopContext(ctx context.Context) error {
func (r *SocketmodeHandler) runEventLoop(ctx context.Context) {
for {
select {
case evt, closed := <-r.Client.Events:
if closed {
case evt, ok := <-r.Client.Events:
if !ok {
return
}

Expand Down

0 comments on commit 39c076e

Please sign in to comment.