Kaynağa Gözat

* Set proper flags after binary transfer

Bryan Drewery 16 yıl önce
ebeveyn
işleme
fc2814699d
1 değiştirilmiş dosya ile 3 ekleme ve 0 silme
  1. 3 0
      src/mod/update.mod/update.c

+ 3 - 0
src/mod/update.mod/update.c

@@ -319,6 +319,9 @@ static void start_sending_binary(int idx, bool streamable)
     }
     dprintf(idx, "sb le\n");
     putlog(LOG_BOTS, "*", "Completed binary file send to %s", dcc[idx].nick);
+    dcc[idx].status &= ~STAT_SENDINGU;
+    dcc[idx].status |= STAT_UPDATED;
+    bupdating = 0;
   } else {
     if ((i = raw_dcc_send(update_fpath, "*binary", "(binary)", &j)) > 0) {
       putlog(LOG_BOTS, "*", "%s -- can't send new binary",