fix fault when sending data on closed channel

This commit is contained in:
Martin Michelsen
2022-07-27 00:57:15 -07:00
parent ea62275f89
commit ca2c17360d
3 changed files with 11 additions and 2 deletions
+1
View File
@@ -247,6 +247,7 @@ void Channel::send(uint16_t cmd, uint32_t flag, const void* data, size_t size,
bool print_contents) {
if (!this->connected()) {
channel_exceptions_log.warning("Attempted to send command on closed channel; dropping data");
return;
}
string send_data;