Commit 4578cae7 authored by twanvl's avatar twanvl

init sockets in main function, otherwise the installer window doesn't work if...

init sockets in main function, otherwise the installer window doesn't work if updates were not checked first
parent 856dbcc4
...@@ -142,7 +142,6 @@ void check_updates() { ...@@ -142,7 +142,6 @@ void check_updates() {
} }
void check_updates_now(bool async) { void check_updates_now(bool async) {
wxSocketBase::Initialize();
if (async) { if (async) {
CheckUpdateThread* thread = new CheckUpdateThread; CheckUpdateThread* thread = new CheckUpdateThread;
thread->Create(); thread->Create();
......
...@@ -26,6 +26,7 @@ ...@@ -26,6 +26,7 @@
#include <wx/fs_inet.h> #include <wx/fs_inet.h>
#include <wx/wfstream.h> #include <wx/wfstream.h>
#include <wx/txtstrm.h> #include <wx/txtstrm.h>
#include <wx/socket.h>
// ----------------------------------------------------------------------------- : Main function/class // ----------------------------------------------------------------------------- : Main function/class
...@@ -82,6 +83,7 @@ int MSE::OnRun() { ...@@ -82,6 +83,7 @@ int MSE::OnRun() {
#endif #endif
wxInitAllImageHandlers(); wxInitAllImageHandlers();
wxFileSystem::AddHandler(new wxInternetFSHandler); // needed for update checker wxFileSystem::AddHandler(new wxInternetFSHandler); // needed for update checker
wxSocketBase::Initialize();
init_script_variables(); init_script_variables();
init_file_formats(); init_file_formats();
cli.init(); cli.init();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment