Fix a missing callback in closeChannel

pull/1/head
yflory 7 years ago
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…
Cancel
Save