fixed crash
This commit is contained in:
+2
-1
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user