You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Unix: Don't print an error if bind fails
This commit is contained in:
@@ -429,20 +429,16 @@ Error NetSocketUnix::bind(NetSocket::Address p_addr) {
|
|||||||
ERR_FAIL_COND_V(_family != p_addr.get_family(), ERR_INVALID_PARAMETER);
|
ERR_FAIL_COND_V(_family != p_addr.get_family(), ERR_INVALID_PARAMETER);
|
||||||
switch (p_addr.get_family()) {
|
switch (p_addr.get_family()) {
|
||||||
case Family::INET: {
|
case Family::INET: {
|
||||||
Error res = _inet_bind(p_addr.ip(), p_addr.port());
|
return _inet_bind(p_addr.ip(), p_addr.port());
|
||||||
ERR_FAIL_COND_V(res != OK, res);
|
}
|
||||||
} break;
|
|
||||||
case Family::UNIX: {
|
case Family::UNIX: {
|
||||||
_unix_path = p_addr.get_path();
|
_unix_path = p_addr.get_path();
|
||||||
Error res = _unix_bind(_unix_path);
|
return _unix_bind(_unix_path);
|
||||||
ERR_FAIL_COND_V(res != OK, res);
|
}
|
||||||
} break;
|
|
||||||
case Family::NONE:
|
case Family::NONE:
|
||||||
default:
|
default:
|
||||||
return ERR_INVALID_PARAMETER;
|
return ERR_INVALID_PARAMETER;
|
||||||
}
|
}
|
||||||
|
|
||||||
return OK;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Error NetSocketUnix::listen(int p_max_pending) {
|
Error NetSocketUnix::listen(int p_max_pending) {
|
||||||
|
|||||||
Reference in New Issue
Block a user