Skip to content

Commit

Permalink
Oops, forgit a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
oskirby committed Jan 16, 2024
1 parent b203539 commit 9828f33
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/tcppingsender.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,8 @@ void TcpPingSender::sendPing(const QHostAddress& dest, quint16 sequence) {
}

// Consider the ping to be recieved once the TCP handshake is complete.
connect(socket, &QAbstractSocket::connected, this, [this, sequence]{
emit recvPing(sequence);
});
connect(socket, &QAbstractSocket::connected, this,
[this, sequence]{ emit recvPing(sequence); });

// Cleanup the socket upon completion.
connect(socket, &QAbstractSocket::connected, socket, &QObject::deleteLater);
Expand Down

0 comments on commit 9828f33

Please sign in to comment.