init sockets in main function, otherwise the installer window doesn't work if updates were not checked first

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1469 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2010-08-03 14:51:24 +00:00
parent 2bc67b964f
commit 37da5e1141
2 changed files with 2 additions and 1 deletions
-1
View File
@@ -142,7 +142,6 @@ void check_updates() {
}
void check_updates_now(bool async) {
wxSocketBase::Initialize();
if (async) {
CheckUpdateThread* thread = new CheckUpdateThread;
thread->Create();
+2
View File
@@ -26,6 +26,7 @@
#include <wx/fs_inet.h>
#include <wx/wfstream.h>
#include <wx/txtstrm.h>
#include <wx/socket.h>
// ----------------------------------------------------------------------------- : 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();