Skip to content

armgit / godot

Public Imported from GitHub
0

Godot Engine – Multi-platform 2D and 3D game engine

EngineUpdateLabel: Cancel HTTP request when switching to offline mode

NoNormalDev7879366ea704
diff --git a/editor/project_manager/engine_update_label.cpp b/editor/project_manager/engine_update_label.cpp
index 8cbe0564eec..4881c732ec3 100644
--- a/editor/project_manager/engine_update_label.cpp
+++ b/editor/project_manager/engine_update_label.cpp
@@ -268,6 +268,7 @@ void EngineUpdateLabel::_notification(int p_what) {
if (_can_check_updates()) {
_check_update();
} else {
+ http->cancel_request();
_set_status(UpdateStatus::OFFLINE);
}
} break;