Skip to content

Commit c961e2c

Browse files
tomerdcompnerd
andauthored
Update Sources/Commands/SwiftTool.swift
Co-authored-by: Saleem Abdulrasool <[email protected]>
1 parent a322bf7 commit c961e2c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/Commands/SwiftTool.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ public class SwiftTool {
404404
_ = SetConsoleCtrlHandler({ _ in
405405
// Terminate all processes on receiving an interrupt signal.
406406
DefaultPluginScriptRunner.cancelAllRunningPlugins()
407-
SwiftTool.cancellator?.cancel()
407+
try? SwiftTool.cancellator?.cancel(deadline: .now + seconds(30))
408408

409409
// Reset the handler.
410410
_ = SetConsoleCtrlHandler(nil, false)

0 commit comments

Comments
 (0)