From cd7c5abc3edbea95caeee9d92fdfb7c4cac6abea Mon Sep 17 00:00:00 2001 From: yflory Date: Wed, 10 Jan 2018 16:46:46 +0100 Subject: [PATCH] Fix a missing callback in closeChannel --- storage/file.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/storage/file.js b/storage/file.js index 31b58aa94..a1348d427 100644 --- a/storage/file.js +++ b/storage/file.js @@ -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];