mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 17:01:18 +02:00
reinitialize winsock on silent domain checkin
This commit is contained in:
parent
ca0c9e236b
commit
7017cf8437
1 changed files with 4 additions and 0 deletions
|
@ -76,6 +76,10 @@ void Socket::rebind() {
|
||||||
|
|
||||||
void Socket::rebind(quint16 localPort) {
|
void Socket::rebind(quint16 localPort) {
|
||||||
_udpSocket.close();
|
_udpSocket.close();
|
||||||
|
#ifdef WIN32
|
||||||
|
WSAData ws;
|
||||||
|
WSAStartup(MAKEWORD(2, 2), &ws);
|
||||||
|
#endif
|
||||||
bind(QHostAddress::AnyIPv4, localPort);
|
bind(QHostAddress::AnyIPv4, localPort);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue