Skip to content

Commit 3dc6c2f

Browse files
authored
Merge branch 'main' into ff-poolmanager
2 parents baa2859 + 4ebc10c commit 3dc6c2f

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

Sources/ConnectionPoolModule/ConnectionPool.swift

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -310,12 +310,15 @@ public final class ConnectionPool<
310310
await self.run(in: &taskGroup)
311311
}
312312
} onCancel: {
313-
let actions = self.stateBox.withLockedValue { state in
314-
state.stateMachine.triggerForceShutdown()
315-
}
313+
self.triggerForceShutdown()
314+
}
315+
}
316316

317-
self.runStateMachineActions(actions)
317+
public func triggerForceShutdown() {
318+
let actions = self.stateBox.withLockedValue { state in
319+
state.stateMachine.triggerForceShutdown()
318320
}
321+
self.runStateMachineActions(actions)
319322
}
320323

321324
// MARK: - Private Methods -

0 commit comments

Comments
 (0)