瀏覽代碼

* Set proper flags after binary transfer

Bryan Drewery 16 年之前
父節點
當前提交
fc2814699d
共有 1 個文件被更改,包括 3 次插入0 次删除
  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",