Added in checks so that the entire thing isn't consumed.
This commit is contained in:
1 parent
fd3f25608f
commit
f899848631
1 file changed
+2
-2
@@ -608,9 +608,9 @@ function Node:close_all_docviews()
|
||||
else
|
||||
self.a:close_all_docviews()
|
||||
self.b:close_all_docviews()
|
||||
if self.a:is_empty() then
|
||||
if self.a:is_empty() and not self.a.is_primary_node then
|
||||
self:consume(self.b)
|
||||
elseif self.b:is_empty() then
|
||||
elseif self.b:is_empty() and not self.b.is_primary_node then
|
||||
self:consume(self.a)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user