Skip to content

Commit

Permalink
Numptie
Browse files Browse the repository at this point in the history
  • Loading branch information
0xTim committed Aug 24, 2023
1 parent 80a02fa commit 11dd442
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Sources/Vapor/Application.swift
Original file line number Diff line number Diff line change
Expand Up @@ -174,15 +174,14 @@ public final class Application: Sendable {
}

public func boot() throws {
self.isBooted.withLockedValue { booted in
try self.isBooted.withLockedValue { booted in
guard !booted else {
return
}
booted = true
try self.lifecycle.handlers.forEach { try $0.willBoot(self) }
try self.lifecycle.handlers.forEach { try $0.didBoot(self) }
}

try self.lifecycle.handlers.forEach { try $0.willBoot(self) }
try self.lifecycle.handlers.forEach { try $0.didBoot(self) }
}

public func shutdown() {
Expand Down

0 comments on commit 11dd442

Please sign in to comment.