]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/libsystemd/sd-netlink/netlink-slot.c
sd-netlink: make calc_elapse() return USEC_INFINITY when no timeout is requested
[thirdparty/systemd.git] / src / libsystemd / sd-netlink / netlink-slot.c
index b237db3c2f8e0a945c19db07054aeb6f70a54f5d..d85d2cd2f4069af3cbf079fd25dc7e6bc8f0bf67 100644 (file)
@@ -63,7 +63,7 @@ void netlink_slot_disconnect(sd_netlink_slot *slot, bool unref) {
         case NETLINK_REPLY_CALLBACK:
                 (void) hashmap_remove(nl->reply_callbacks, &slot->reply_callback.serial);
 
-                if (slot->reply_callback.timeout != 0)
+                if (slot->reply_callback.timeout != USEC_INFINITY)
                         prioq_remove(nl->reply_callbacks_prioq, &slot->reply_callback, &slot->reply_callback.prioq_idx);
 
                 break;