diff options
| author | Fabio Alessandrelli | 2017-01-18 12:47:12 +0100 |
|---|---|---|
| committer | Fabio Alessandrelli | 2017-03-22 21:00:23 +0100 |
| commit | d9525082feb6165944082fb80ae7785b23a2250c (patch) | |
| tree | 1191470efc7ecc96499a3eecbcfded56ebe670d8 /platform/windows/tcp_server_winsock.cpp | |
| parent | 0b9684a085f244210f166070a9589bdd70876196 (diff) | |
| download | godot-d9525082feb6165944082fb80ae7785b23a2250c.tar.gz godot-d9525082feb6165944082fb80ae7785b23a2250c.tar.zst godot-d9525082feb6165944082fb80ae7785b23a2250c.zip | |
Diffstat (limited to 'platform/windows/tcp_server_winsock.cpp')
| -rw-r--r-- | platform/windows/tcp_server_winsock.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/platform/windows/tcp_server_winsock.cpp b/platform/windows/tcp_server_winsock.cpp index 0f117bc6b..67713f5d1 100644 --- a/platform/windows/tcp_server_winsock.cpp +++ b/platform/windows/tcp_server_winsock.cpp @@ -68,7 +68,7 @@ Error TCPServerWinsock::listen(uint16_t p_port, const IP_Address p_bind_address) ERR_FAIL_COND_V(!p_bind_address.is_valid() && !p_bind_address.is_wildcard(), ERR_INVALID_PARAMETER); int sockfd; - sock_type = ip_type; + sock_type = IP::TYPE_ANY; // If the bind address is valid use its type as the socket type if (p_bind_address.is_valid()) @@ -173,7 +173,6 @@ void TCPServerWinsock::stop() { TCPServerWinsock::TCPServerWinsock() { listen_sockfd = INVALID_SOCKET; - ip_type = IP::TYPE_ANY; sock_type = IP::TYPE_NONE; }; |
