Only send an AUTOATTR response if necessary
authorJack Miller <jack@codezen.org>
Wed, 15 Jul 2015 02:26:43 +0000 (21:26 -0500)
committerJack Miller <jack@codezen.org>
Wed, 15 Jul 2015 02:31:49 +0000 (21:31 -0500)
canto_next/canto_backend.py

index 96cc140..e590407 100644 (file)
@@ -375,9 +375,9 @@ class CantoBackend(PluginHandler, CantoServer):
                 if socket in self.autoattr:
                     for id in items:
                         attr_req[id] = self.autoattr[socket][:]
+                    attr_list.append(attr_req)
 
                 self.write(socket, "ITEMS", { tag : items })
-                attr_list.append(attr_req)
 
             self.write(socket, "ITEMSDONE", {})