You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
Synchronize parameter names in definition and declaration
Fixes #10244.
This commit is contained in:
committed by
Rémi Verschelde
parent
b1ecaaa22b
commit
00f6c85928
@@ -172,13 +172,13 @@ Error PacketPeerUDPPosix::wait() {
|
||||
return _poll(true);
|
||||
}
|
||||
|
||||
Error PacketPeerUDPPosix::_poll(bool p_wait) {
|
||||
Error PacketPeerUDPPosix::_poll(bool p_block) {
|
||||
|
||||
if (sockfd == -1) {
|
||||
return FAILED;
|
||||
}
|
||||
|
||||
_set_sock_blocking(p_wait);
|
||||
_set_sock_blocking(p_block);
|
||||
|
||||
struct sockaddr_storage from = { 0 };
|
||||
socklen_t len = sizeof(struct sockaddr_storage);
|
||||
@@ -216,7 +216,7 @@ Error PacketPeerUDPPosix::_poll(bool p_wait) {
|
||||
|
||||
len = sizeof(struct sockaddr_storage);
|
||||
++queue_count;
|
||||
if (p_wait)
|
||||
if (p_block)
|
||||
break;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user