fix WSA error 10093 when openning a ServerSocketChannel

We need to call Socket.init before trying to use the Windows Socket
library.  We were already doing this in SocketChannel.open, but not in
ServerSocketChannel.open.
This commit is contained in:
Joel Dice 2014-11-07 11:31:19 -07:00
parent d037a69cd3
commit 4fd8396ba3

View File

@ -25,6 +25,8 @@ public class ServerSocketChannel extends SelectableChannel {
}
public static ServerSocketChannel open() throws IOException {
Socket.init();
return new ServerSocketChannel();
}