MCPcopy Create free account
hub / github.com/baumgarr/nixnote2 / checkForTimeout

Method checkForTimeout

qevercloud/http.cpp:64–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62}
63
64void ReplyFetcher::checkForTimeout()
65{
66 const int connectionTimeout = 30*1000;
67 if((lastNetworkTime_ - QDateTime::currentMSecsSinceEpoch()) > connectionTimeout) {
68 setError(QStringLiteral("Connection timeout."));
69 }
70}
71
72
73void ReplyFetcher::onFinished()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected