Skip to content

Commit

Permalink
chore: Fix desynced root and v3 directory
Browse files Browse the repository at this point in the history
As pointed out in #520 (comment), the subdirectory v3 has been out of sync. This PR copies all missing changes to the root directory.
  • Loading branch information
cpuschma committed May 28, 2024
1 parent 56e5759 commit 51228a6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -535,9 +535,10 @@ func (l *Conn) processMessages() {
l.messageContexts[message.MessageID] = message.Context

// Add timeout if defined
if l.getTimeout() > 0 {
requestTimeout := l.getTimeout()
if requestTimeout > 0 {
go func() {
timer := time.NewTimer(time.Duration(l.getTimeout()))
timer := time.NewTimer(time.Duration(requestTimeout))
defer func() {
if err := recover(); err != nil {
l.err = fmt.Errorf("ldap: recovered panic in RequestTimeout: %v", err)
Expand Down

0 comments on commit 51228a6

Please sign in to comment.