diff --git a/src/gui/update_checker.cpp b/src/gui/update_checker.cpp index d94001f0..8298db40 100644 --- a/src/gui/update_checker.cpp +++ b/src/gui/update_checker.cpp @@ -142,7 +142,6 @@ void check_updates() { } void check_updates_now(bool async) { - wxSocketBase::Initialize(); if (async) { CheckUpdateThread* thread = new CheckUpdateThread; thread->Create(); diff --git a/src/main.cpp b/src/main.cpp index f28cd894..e3494d35 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -26,6 +26,7 @@ #include #include #include +#include // ----------------------------------------------------------------------------- : Main function/class @@ -82,6 +83,7 @@ int MSE::OnRun() { #endif wxInitAllImageHandlers(); wxFileSystem::AddHandler(new wxInternetFSHandler); // needed for update checker + wxSocketBase::Initialize(); init_script_variables(); init_file_formats(); cli.init();