We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 00b2c38 commit a3606d6Copy full SHA for a3606d6
1 file changed
GCDWebServer/Core/GCDWebServer.m
@@ -244,7 +244,9 @@ - (void)_didConnect {
244
GWS_LOG_DEBUG(@"Did connect");
245
246
#if TARGET_OS_IPHONE
247
- [self _startBackgroundTask];
+ if ([[UIApplication sharedApplication] applicationState] != UIApplicationStateBackground) {
248
+ [self _startBackgroundTask];
249
+ }
250
#endif
251
252
if ([_delegate respondsToSelector:@selector(webServerDidConnect:)]) {
0 commit comments