Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
rebello95 committed May 23, 2024
1 parent e1a0cc2 commit dee9b5f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Libraries/Connect/Internal/Utilities/TimeoutTimer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ final class TimeoutTimer: @unchecked Sendable {
}
}

deinit {
self.cancel()
}

func start(onTimeout: @escaping () -> Void) {
let milliseconds = Int(self.timeout * 1_000)
self.queue.sync { self.onTimeout = onTimeout }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,8 @@ extension ProtocolClient: ProtocolClientInterface {
),
tracingInfo: nil
)
} else {
timeoutTimer?.cancel()
}

interceptorChain.executeLinkedInterceptors(
Expand Down

0 comments on commit dee9b5f

Please sign in to comment.