mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
fixed a potentional bug
This commit is contained in:
parent
63c167f1db
commit
279a80b66f
1 changed files with 4 additions and 2 deletions
|
@ -294,8 +294,10 @@ void Application::initPubsub()
|
|||
auto reward = ChannelPointReward(data);
|
||||
|
||||
postToThread([chan, reward] {
|
||||
auto channel = dynamic_cast<TwitchChannel *>(chan.get());
|
||||
if (auto channel = dynamic_cast<TwitchChannel *>(chan.get()))
|
||||
{
|
||||
channel->addChannelPointReward(reward);
|
||||
}
|
||||
});
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue