Fix semaphore

This commit is contained in:
Christoph Hagen 2023-02-16 23:33:39 +01:00
parent 1927a35d37
commit e2b1fb58e9
2 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,7 @@ let package = Package(
// https://github.com/Joannis/SMTPKitten <- No updates since 0ct 2020
// https://github.com/Joannis/VaporSMTPKit <- No updates since 0ct. 2020, uses SMTPKitten
.package(url: "https://github.com/Kitura/Swift-SMTP", from: "6.0.0"),
.package(url: "https://github.com/christophhagen/clairvoyant.git", branch: "main"),
.package(url: "https://github.com/christophhagen/clairvoyant.git", from: "0.5.0"),
],
targets: [
.target(

View File

@ -6,7 +6,7 @@ try LoggingSystem.bootstrap(from: &env)
let app = Application(env)
defer { app.shutdown() }
private let semaphore = DispatchSemaphore(value: 1)
private let semaphore = DispatchSemaphore(value: 0)
Task {
try await configure(app)
semaphore.signal()