]> git.proxmox.com Git - mirror_frr.git/blobdiff - ospfd/ospf_ism.h
Merge pull request #5549 from donaldsharp/automated
[mirror_frr.git] / ospfd / ospf_ism.h
index 5ae99ab32070b2d87b0c944b6d62fb4aafb0f828..8d21403695faf7a8657ca5bcd4f84bdbe7aa3328 100644 (file)
@@ -53,8 +53,9 @@
                        listnode_add((O)->oi_write_q, oi);                     \
                        oi->on_write_q = 1;                                    \
                }                                                              \
-               thread_add_write(master, ospf_write, (O), (O)->fd,             \
-                                &(O)->t_write);                               \
+               if (!list_isempty((O)->oi_write_q))                            \
+                       thread_add_write(master, ospf_write, (O), (O)->fd,     \
+                                        &(O)->t_write);                       \
        } while (0)
 
 /* Macro for OSPF ISM timer turn on. */