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 5efe448a9c
commit c0f11fb67b
No known key found for this signature in database
GPG Key ID: D864B06D1E81618F
1 changed files with 1 additions and 1 deletions

View File

@ -84,7 +84,7 @@ public:
{
if (!socket_
|| 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
if (socket_