From 43772c61813ce8380100e5754856cb149393fd85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Ortega=20Froysa?= Date: Thu, 21 Sep 2017 10:28:11 +0200 Subject: [PATCH] On run function if node is running. --- src/channel.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/channel.cpp b/src/channel.cpp index 356c006..21281bf 100644 --- a/src/channel.cpp +++ b/src/channel.cpp @@ -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;