Skip to content

Commit

Permalink
Use RUnlock to unlock RLock mutex in Session.Open
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaDoes committed Oct 23, 2022
1 parent 2f9452d commit 9179453
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion message.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package guildrone
import (
"time"

"github.com/go-playground/validator/v10"
"github.com/go-playground/validator"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion wsapi.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func (s *Session) Open() error {
if len(s.LastEventID) > 0 {
header.Add("guilded-last-message-id", s.LastEventID)
}
s.eventMu.Unlock()
s.eventMu.RUnlock()
}
s.wsConn, _, err = websocket.DefaultDialer.Dial(EndpointGuildedWebsocket, header)
if err != nil {
Expand Down

0 comments on commit 9179453

Please sign in to comment.