Main.cxx: initialize winsock before creating IO thread

Otherwise sockets can't be created during IO thread initialization.
This commit is contained in:
Denis Krjuchkov 2013-11-26 18:10:18 +06:00
parent b88ea6735b
commit 957d187ae4
1 changed files with 1 additions and 1 deletions

View File

@ -372,8 +372,8 @@ int mpd_main(int argc, char *argv[])
g_thread_init(nullptr); g_thread_init(nullptr);
#endif #endif
io_thread_init();
winsock_init(); winsock_init();
io_thread_init();
config_global_init(); config_global_init();
success = parse_cmdline(argc, argv, &options, error); success = parse_cmdline(argc, argv, &options, error);