Main.cxx: initialize winsock before creating IO thread
Otherwise sockets can't be created during IO thread initialization.
This commit is contained in:
parent
b88ea6735b
commit
957d187ae4
|
@ -372,8 +372,8 @@ int mpd_main(int argc, char *argv[])
|
|||
g_thread_init(nullptr);
|
||||
#endif
|
||||
|
||||
io_thread_init();
|
||||
winsock_init();
|
||||
io_thread_init();
|
||||
config_global_init();
|
||||
|
||||
success = parse_cmdline(argc, argv, &options, error);
|
||||
|
|
Loading…
Reference in New Issue