Skip to content
This repository has been archived by the owner on Dec 5, 2019. It is now read-only.

Commit

Permalink
Enabled automatic server backgrounding.
Browse files Browse the repository at this point in the history
  • Loading branch information
sidneys committed Dec 24, 2014
1 parent 37e1d5c commit 6348a52
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ios/AppDelegate+WKWebViewPolyfill.m
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ - (void)startServer
{
NSError *error = nil;

[_webServerOptions setObject:[NSNumber numberWithBool:NO] forKey:GCDWebServerOption_AutomaticallySuspendInBackground];
// Enable this option to force the Server also to run when suspended
//[_webServerOptions setObject:[NSNumber numberWithBool:NO] forKey:GCDWebServerOption_AutomaticallySuspendInBackground];

// Initialize Server listening port, initially trying 12344 for backwards compatibility
int httpPort = 12344;
Expand Down

0 comments on commit 6348a52

Please sign in to comment.