We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2f623f0 commit 9de41ceCopy full SHA for 9de41ce
conn.go
@@ -327,6 +327,8 @@ func (l *Conn) nextMessageID() int64 {
327
// GetLastError returns the last recorded error from goroutines like processMessages and reader.
328
// Only the last recorded error will be returned.
329
func (l *Conn) GetLastError() error {
330
+ l.messageMutex.Lock()
331
+ defer l.messageMutex.Unlock()
332
return l.err
333
}
334
v3/conn.go
// // Only the last recorded error will be returned.
0 commit comments