Fix a missing callback in closeChannel
parent
d74c2a0395
commit
cd7c5abc3e
|
@ -45,7 +45,7 @@ var getChannelMetadata = function (Env, channelId, cb) {
|
|||
};
|
||||
|
||||
var closeChannel = function (env, channelName, cb) {
|
||||
if (!env.channels[channelName]) { return; }
|
||||
if (!env.channels[channelName]) { return void cb(); }
|
||||
try {
|
||||
env.channels[channelName].writeStream.close();
|
||||
delete env.channels[channelName];
|
||||
|
|
Loading…
Reference in New Issue