mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 03:44:02 +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) {
|
||||
_udpSocket.close();
|
||||
#ifdef WIN32
|
||||
WSAData ws;
|
||||
WSAStartup(MAKEWORD(2, 2), &ws);
|
||||
#endif
|
||||
bind(QHostAddress::AnyIPv4, localPort);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue