Fix setMetadata RPC saferphore

This commit is contained in:
yflory
2019-09-03 13:29:57 +02:00
parent 6e5fdc0b8e
commit d52e449f87
2 changed files with 2 additions and 1 deletions

1
rpc.js
View File

@@ -394,6 +394,7 @@ var setMetadata = function (Env, data, unsafeKey, cb) {
// if your command is valid but it didn't result in any change to the metadata,
// call back now and don't write any "useless" line to the log
if (!changed) {
g();
return void cb(void 0, metadata);
}
Env.msgStore.writeMetadata(channel, JSON.stringify(line), function (e) {