2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-30 22:16:14 +00:00

Closed beta 1.2.8.3.

This commit is contained in:
John Preston
2018-02-03 23:26:39 +03:00
parent 269defa82d
commit b8614c60f9
8 changed files with 17 additions and 16 deletions

View File

@@ -3799,7 +3799,10 @@ void ApiWrap::readFeeds() {
auto delay = kFeedReadTimeout;
const auto now = getms(true);
for (auto i = begin(_feedReadsDelayed); i != end(_feedReadsDelayed);) {
const auto [feed, time] = *i;
const auto feed = i->first;
const auto time = i->second;
// Clang fails to capture structure-binded feed to lambda :(
//const auto [feed, time] = *i;
if (time > now) {
accumulate_min(delay, time - now);
++i;