diff --git a/React/Modules/RCTDevMenu.m b/React/Modules/RCTDevMenu.m index 830bcc6c2..1605c4057 100644 --- a/React/Modules/RCTDevMenu.m +++ b/React/Modules/RCTDevMenu.m @@ -659,8 +659,6 @@ RCT_EXPORT_METHOD(reload) } if (_updateTask) { - [_updateTask cancel]; - _updateTask = nil; return; } @@ -675,8 +673,10 @@ RCT_EXPORT_METHOD(reload) if (!error && HTTPResponse.statusCode == 205) { [strongSelf reload]; } else { - strongSelf->_updateTask = nil; - [strongSelf checkForUpdates]; + if (error.code != NSURLErrorCancelled) { + strongSelf->_updateTask = nil; + [strongSelf checkForUpdates]; + } } } });