mirror of
https://github.com/MatsuriDayo/nekoray.git
synced 2025-12-18 04:54:38 +03:00
feat: Automatic update subscription
This commit is contained in:
@@ -114,9 +114,7 @@ namespace QtGrpc {
|
||||
abortTimer = new QTimer;
|
||||
abortTimer->setSingleShot(true);
|
||||
abortTimer->setInterval(timeout_ms);
|
||||
QObject::connect(abortTimer, &QTimer::timeout, abortTimer, [=]() {
|
||||
networkReply->abort();
|
||||
});
|
||||
QObject::connect(abortTimer, &QTimer::timeout, networkReply, &QNetworkReply::abort);
|
||||
abortTimer->start();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user