aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenis Krjuchkov <denis@crazydev.net>2013-11-26 18:10:18 +0600
committerDenis Krjuchkov <denis@crazydev.net>2013-11-26 18:10:18 +0600
commit957d187ae4d2f860b133b49451b2e983fb275c1a (patch)
treedecc41de916a04f794a402a430a1f246feb1f45c
parentb88ea6735b203b65360f90a7d3bd6ce92cf152bc (diff)
downloadmpd-957d187ae4d2f860b133b49451b2e983fb275c1a.tar.gz
mpd-957d187ae4d2f860b133b49451b2e983fb275c1a.tar.xz
mpd-957d187ae4d2f860b133b49451b2e983fb275c1a.zip
Main.cxx: initialize winsock before creating IO thread
Otherwise sockets can't be created during IO thread initialization.
Diffstat (limited to '')
-rw-r--r--src/Main.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Main.cxx b/src/Main.cxx
index 3b89e9ffa..83af5d7ea 100644
--- a/src/Main.cxx
+++ b/src/Main.cxx
@@ -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);