mirror of
https://github.com/swisspol/GCDWebServer.git
synced 2026-05-31 00:00:10 +08:00
Fixed warning
This commit is contained in:
@@ -725,7 +725,7 @@ static inline NSString* _EncodeBase64(NSString* string) {
|
|||||||
if (_options == nil) {
|
if (_options == nil) {
|
||||||
_options = options ? [options copy] : @{};
|
_options = options ? [options copy] : @{};
|
||||||
#if TARGET_OS_IPHONE
|
#if TARGET_OS_IPHONE
|
||||||
_suspendInBackground = [_GetOption(_options, GCDWebServerOption_AutomaticallySuspendInBackground, @YES) boolValue];
|
_suspendInBackground = [(NSNumber*)_GetOption(_options, GCDWebServerOption_AutomaticallySuspendInBackground, @YES) boolValue];
|
||||||
if (((_suspendInBackground == NO) || ([[UIApplication sharedApplication] applicationState] != UIApplicationStateBackground)) && ![self _start:error])
|
if (((_suspendInBackground == NO) || ([[UIApplication sharedApplication] applicationState] != UIApplicationStateBackground)) && ![self _start:error])
|
||||||
#else
|
#else
|
||||||
if (![self _start:error])
|
if (![self _start:error])
|
||||||
|
|||||||
Reference in New Issue
Block a user