]> arthur.barton.de Git - netatalk.git/blobdiff - etc/afpd/afp_dsi.c
Add a flag to load_volumes() that controls load behaviour
[netatalk.git] / etc / afpd / afp_dsi.c
index 63d2f286499db68372e57bfa1e285e7fa9273b06..eb4b19f35d5153302e189b8911bb6d853149ed7d 100644 (file)
@@ -322,9 +322,10 @@ static void alarm_handler(int sig _U_)
         return;
     }
 
-    if ((err = pollvoltime(AFPobj)) == 0)
+    if ((err = pollvoltime(AFPobj)) == 0) {
         LOG(log_debug, logtype_afpd, "afp_alarm: sending DSI tickle");
         err = dsi_tickle(AFPobj->dsi);
+    }
     if (err <= 0) {
         if (geteuid() == 0) {
             LOG(log_note, logtype_afpd, "afp_alarm: unauthenticated user, connection problem");
@@ -532,7 +533,7 @@ void afp_over_dsi(AFPObj *obj)
 
         if (reload_request) {
             reload_request = 0;
-            load_volumes(AFPobj);
+            load_volumes(AFPobj, lv_none);
         }
 
         /* The first SIGINT enables debugging, the next restores the config */