mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
fixed crash
This commit is contained in:
parent
859f4aefcb
commit
98be8aaeff
1 changed files with 2 additions and 1 deletions
|
@ -10,6 +10,7 @@
|
||||||
#include "singletons/settingsmanager.hpp"
|
#include "singletons/settingsmanager.hpp"
|
||||||
#include "singletons/thememanager.hpp"
|
#include "singletons/thememanager.hpp"
|
||||||
#include "singletons/windowmanager.hpp"
|
#include "singletons/windowmanager.hpp"
|
||||||
|
#include "util/posttothread.hpp"
|
||||||
|
|
||||||
using namespace chatterino::singletons;
|
using namespace chatterino::singletons;
|
||||||
|
|
||||||
|
@ -80,7 +81,7 @@ Application::Application()
|
||||||
.arg(action.duration)
|
.arg(action.duration)
|
||||||
.arg(action.reason));
|
.arg(action.reason));
|
||||||
|
|
||||||
chan->addMessage(msg);
|
util::postToThread([chan, msg] { chan->addMessage(msg); });
|
||||||
|
|
||||||
debug::Log("User {}({}) was timed out by {} for {} seconds with reason: '{}'",
|
debug::Log("User {}({}) was timed out by {} for {} seconds with reason: '{}'",
|
||||||
action.target.name, action.target.id, action.source.name, action.duration,
|
action.target.name, action.target.id, action.source.name, action.duration,
|
||||||
|
|
Loading…
Reference in a new issue