Skip to content

Commit 4fd6d12

Browse files
authored
FIX: Leaking a promise (#6)
Signed-off-by: Yoshimasa Niwa <niw@niw.at>
1 parent 7560574 commit 4fd6d12

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Sources/XCBBuildServiceProxyKit/Hybrid/HybridXCBBuildService.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ public final class HybridXCBBuildService<RequestHandler: HybridXCBBuildServiceRe
2525
// When the channel for XCBBuildService is closed, such as the process is terminated,
2626
// close the channel for Xcode as well, which allows to terminate proxy process.
2727
// Xcode then relaunch it when it's needed.
28-
_ = xcbBuildService.channel.closeFuture.flatMap {
29-
channel.close()
28+
xcbBuildService.channel.closeFuture.whenComplete { _ in
29+
channel.close(promise: nil)
3030
}
3131

3232
return channel.pipeline.addHandlers([

0 commit comments

Comments
 (0)