Skip to content

Commit

Permalink
Private added to slot calls
Browse files Browse the repository at this point in the history
  • Loading branch information
sima committed Dec 13, 2023
1 parent 64c8671 commit 0c42ca0
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/cpp/proxy/testwebsocket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -307,14 +307,13 @@ void TestWebSocket::writeFrame(const Frame &frame)
}

d->inFrames += tmp;

QMetaObject::invokeMethod(this, "doFramesWritten", Qt::QueuedConnection, Q_ARG(int, 1), Q_ARG(int, tmp.data.size()));
QMetaObject::invokeMethod(this, "doReadyRead", Qt::QueuedConnection);
QMetaObject::invokeMethod(this, "Private::doFramesWritten", Qt::QueuedConnection, Q_ARG(int, 1), Q_ARG(int, tmp.data.size()));
QMetaObject::invokeMethod(this, "Private::doReadyRead", Qt::QueuedConnection);
}

WebSocket::Frame TestWebSocket::readFrame()
{
QMetaObject::invokeMethod(this, "doWriteBytesChanged", Qt::QueuedConnection);
QMetaObject::invokeMethod(this, "Private::doWriteBytesChanged", Qt::QueuedConnection);

return d->inFrames.takeFirst();
}
Expand Down

0 comments on commit 0c42ca0

Please sign in to comment.