mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
maybe?
This commit is contained in:
parent
4bb0b79348
commit
4d99d2dade
1 changed files with 12 additions and 13 deletions
|
@ -125,23 +125,22 @@ namespace {
|
||||||
[](auto) { runNextJob(); });
|
[](auto) { runNextJob(); });
|
||||||
job->start();
|
job->start();
|
||||||
}
|
}
|
||||||
|
queue.pop();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
static void queueJob(Job &&job)
|
||||||
|
{
|
||||||
|
auto &&queue = jobQueue();
|
||||||
|
|
||||||
|
queue.push(std::move(job));
|
||||||
|
if (queue.size() == 1)
|
||||||
|
{
|
||||||
|
runNextJob();
|
||||||
}
|
}
|
||||||
queue.pop();
|
|
||||||
}
|
}
|
||||||
} // namespace
|
} // namespace
|
||||||
|
|
||||||
static void queueJob(Job &&job)
|
|
||||||
{
|
|
||||||
auto &&queue = jobQueue();
|
|
||||||
|
|
||||||
queue.push(std::move(job));
|
|
||||||
if (queue.size() == 1)
|
|
||||||
{
|
|
||||||
runNextJob();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
} // namespace chatterino
|
|
||||||
|
|
||||||
Credentials &Credentials::getInstance()
|
Credentials &Credentials::getInstance()
|
||||||
{
|
{
|
||||||
static Credentials creds;
|
static Credentials creds;
|
||||||
|
|
Loading…
Reference in a new issue