reinitialize winsock on silent domain checkin

This commit is contained in:
Roxanne Skelly 2019-06-12 15:24:43 -07:00
parent ca0c9e236b
commit 7017cf8437

View file

@ -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);
}