Comparison

util/pubsub.lua @ 11567:c471e19a238e

Merge 0.11->trunk
author Kim Alvefur <zash@zash.se>
date Sun, 16 May 2021 19:05:20 +0200
parent 11565:087b275a9aee
parent 10537:c5558138ce33
child 11719:3986b5a0c3fc
comparison
equal deleted inserted replaced
11564:60e31c9ece57 11567:c471e19a238e
563 end 563 end
564 if not self.config.itemcheck(item) then 564 if not self.config.itemcheck(item) then
565 return nil, "invalid-item"; 565 return nil, "invalid-item";
566 end 566 end
567 local node_data = self.data[node]; 567 local node_data = self.data[node];
568 if not node_data then
569 -- FIXME how is this possible? #1657
570 return nil, "internal-server-error";
571 end
568 local ok = node_data:set(id, item); 572 local ok = node_data:set(id, item);
569 if not ok then 573 if not ok then
570 return nil, "internal-server-error"; 574 return nil, "internal-server-error";
571 end 575 end
572 if type(ok) == "string" then id = ok; end 576 if type(ok) == "string" then id = ok; end