On run function if node is running.
This commit is contained in:
parent
1b24fb56b4
commit
43772c6181
@ -62,6 +62,8 @@ int NeoComm_join_channel(const char *channel_name) {
|
||||
}
|
||||
|
||||
void NeoComm_leave_channel(const char *channel_name) {
|
||||
if(not node.isRunning())
|
||||
return;
|
||||
const std::string s_chan_name(channel_name);
|
||||
if(channels.find(s_chan_name) == channels.end())
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user