Removed a call to `set_blocking_enabled` from function `enet_socket_create` since it is already called from https://github.com/godotengine/godot/blob/master/thirdparty/enet/host.c#L63
This commit is contained in:
parent
bb3089895c
commit
63d1a80656
|
@ -95,7 +95,6 @@ ENetSocket enet_socket_create(ENetSocketType type) {
|
||||||
NetSocket *socket = NetSocket::create();
|
NetSocket *socket = NetSocket::create();
|
||||||
IP::Type ip_type = IP::TYPE_ANY;
|
IP::Type ip_type = IP::TYPE_ANY;
|
||||||
socket->open(NetSocket::TYPE_UDP, ip_type);
|
socket->open(NetSocket::TYPE_UDP, ip_type);
|
||||||
socket->set_blocking_enabled(false);
|
|
||||||
|
|
||||||
return socket;
|
return socket;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue