You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you submit a PR for this I'll accept it, but the next time I have some free time I will probably focus it on the v4.0, which gets rid of QSharedMemory.
Technically it should also be affected by this issue, so I will probably have to make sure I consider the issue there as well.
Hi
The Qt6's specs set -1 as a value of waitForReadyRead() : https://doc.qt.io/qt-6/qiodevice.html#waitForReadyRead
As for https://github.com/itay-grudev/SingleApplication/blob/master/singleapplication_p.cpp#L324
The msecs can be negative and different than -1 (coming from static_cast(msecs - time.elapsed()) )
The result is that at random, the function doesn't wait and return false. That lead to not send the message.
The proposition is to replace the call by :
bool result = socket->waitForReadyRead( msecs < 0 ? -1 : msecs );
Regards
The text was updated successfully, but these errors were encountered: