Repair regression with UDP spotting to PSK Reporter

Recover correctly from broken connections, i.e. do nothing for UDP.
This commit is contained in:
Bill Somerville 2020-10-23 04:36:28 +01:00
parent ab90585e46
commit 66e9102d67
No known key found for this signature in database
GPG Key ID: D864B06D1E81618F

View File

@ -84,7 +84,7 @@ public:
{ {
if (!socket_ if (!socket_
|| QAbstractSocket::UnconnectedState == socket_->state () || QAbstractSocket::UnconnectedState == socket_->state ()
|| (socket_->socketType () != config_->psk_reporter_tcpip () ? QAbstractSocket::TcpSocket : QAbstractSocket::UdpSocket)) || (socket_->socketType () != (config_->psk_reporter_tcpip () ? QAbstractSocket::TcpSocket : QAbstractSocket::UdpSocket)))
{ {
// we need to create the appropriate socket // we need to create the appropriate socket
if (socket_ if (socket_