Skip to content

Commit

Permalink
fix: Receiver pool can sometimes crash when a disconnect occurs unexp…
Browse files Browse the repository at this point in the history
…ectedly
  • Loading branch information
driskell committed Jul 19, 2024
1 parent e246e01 commit 3553db5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lc-lib/receiver/pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,7 @@ ReceiverLoop:
connection := eventImpl.Context().Value(transports.ContextConnection)
r.apiConnections.RemoveEntry(r.connectionStatus[connection].remote)
delete(r.connectionStatus, connection)
r.scheduler.Remove(connection)
r.connectionLock.Unlock()
case *transports.StatusEvent:
if eventImpl.StatusChange() == transports.Finished {
Expand Down

0 comments on commit 3553db5

Please sign in to comment.