Browse Source

【修改】发现消息发送间隔为 2s,加快设备发现速度

SummerGift 6 years ago
parent
commit
43e89745a9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/daemon.c

+ 1 - 1
src/daemon.c

@@ -133,7 +133,7 @@ int lssdp_daemon(void) {
         }
 
         // doing task per 5 seconds
-        if (current_time - last_time >= 5000) {
+        if (current_time - last_time >= 2000) {
             lssdp_network_interface_update(&lssdp); // update network interface
             lssdp_service_send_notify(&lssdp);      // send notify messages to network