File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed
ci/LDKSwift/Tests/LDKSwiftTests Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -177,9 +177,14 @@ public class ChannelManagerConstructor: NativeTypeWrapper {
177
177
178
178
}
179
179
180
- public func interrupt( ) {
181
- print ( " stopping background processor " )
180
+ public func interrupt( tcpPeerHandler: TCPPeerHandler ? = nil ) {
182
181
self . shutdown = true
182
+ if let tcpHandler = tcpPeerHandler {
183
+ print ( " stopping TCP peer handler " )
184
+ tcpHandler. interrupt ( )
185
+ print ( " stopped TCP peer handler " )
186
+ }
187
+ print ( " stopping background processor " )
183
188
self . backgroundProcessor? . dangle ( ) . stop ( )
184
189
print ( " stopped background processor " )
185
190
if let processor = self . backgroundProcessor {
Original file line number Diff line number Diff line change @@ -282,8 +282,8 @@ public class HumanObjectPeerTestInstance {
282
282
XCTAssertEqual ( connectedPeersA. count, 1 )
283
283
XCTAssertEqual ( connectedPeersB. count, 1 )
284
284
285
- peer1. constructor? . interrupt ( )
286
- peer2. constructor? . interrupt ( )
285
+ peer1. constructor? . interrupt ( tcpPeerHandler : peer1 . tcpSocketHandler )
286
+ peer2. constructor? . interrupt ( tcpPeerHandler : peer2 . tcpSocketHandler )
287
287
288
288
}
289
289
You can’t perform that action at this time.
0 commit comments