Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
Valentyn Kahamlyk authored and Valentyn Kahamlyk committed Dec 22, 2023
1 parent 1ce1ba2 commit 361b8bd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions gremlin-go/driver/connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ func (connection *connection) errorCallback() {
connection.syncLock.Lock()
defer connection.syncLock.Unlock()

if connection.state == closed || connection.state == closedDueToError {
return
}

connection.logHandler.log(Error, errorCallback)
connection.state = closedDueToError

Expand Down

0 comments on commit 361b8bd

Please sign in to comment.