river-status: don't report destroying views

This commit is contained in:
Isaac Freund 2020-08-22 17:17:57 +02:00
parent dd425a3e66
commit e92b6307d9
No known key found for this signature in database
GPG key ID: 86DED400DDFD7A11

View file

@ -59,6 +59,7 @@ pub fn sendViewTags(self: Self) void {
var it = self.output.views.first;
while (it) |node| : (it = node.next) {
if (node.view.destroying) continue;
view_tags.append(node.view.current.tags) catch {
c.wl_resource_post_no_memory(self.wl_resource);
log.crit(.river_status, "out of memory", .{});