Fix discover freezing when internet connection is absent

Ernest Gupik requested to merge (removed):master into master

I'm not super familiar C++ nor with the code base yet, but using git bisect and some playing around with the first bad commit (7eddbef0 - Use std::chrono_literals + initialize variables in headers), I figured out that this exact change caused this bug.

CCBUG: 454442

Merge request reports