Skip to content

Commit a63a912

Browse files
authored
Merge pull request meteor#25 from awwx/run-local-web-server-in-bg
Continue running the local web server in the background
2 parents 10d4ddb + 870957c commit a63a912

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/ios/WebAppLocalServer.swift

+2-1
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,8 @@ open class WebAppLocalServer: METPlugin, AssetBundleManagerDelegate {
364364

365365
let options = [
366366
GCDWebServerOption_Port: NSNumber(value: localServerPort as UInt),
367-
GCDWebServerOption_BindToLocalhost: true]
367+
GCDWebServerOption_BindToLocalhost: true,
368+
GCDWebServerOption_AutomaticallySuspendInBackground: false]
368369
try localServer.start(options: options)
369370

370371
// Set localServerPort to the assigned port, in case it is different

0 commit comments

Comments
 (0)