fix an issue that sockets are not synchronized automatically on changing target of Node/Ref

This commit is contained in:
2022-11-14 00:42:39 +09:00
parent 4de67f65e6
commit 27b594ee54

View File

@@ -143,6 +143,7 @@ class Ref final : public nf7::FileBase, public nf7::Node {
std::make_shared<nf7::GenericContext>(*this, "change path"),
[this, &target, p = std::move(p)]() mutable {
target = std::move(p);
SyncQuiet();
mem_.Commit();
});
}