mirror of
https://github.com/corda/corda.git
synced 2025-01-07 13:38:47 +00:00
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:
parent
d037a69cd3
commit
4fd8396ba3
@ -25,6 +25,8 @@ public class ServerSocketChannel extends SelectableChannel {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static ServerSocketChannel open() throws IOException {
|
public static ServerSocketChannel open() throws IOException {
|
||||||
|
Socket.init();
|
||||||
|
|
||||||
return new ServerSocketChannel();
|
return new ServerSocketChannel();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user