Skip to content

Commit bbde233

Browse files
committed
windows fix
1 parent 840c3d2 commit bbde233

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)