瀏覽代碼

* Fixed a small idx bug check in closing remote simuls

svn: 2031
Bryan Drewery 21 年之前
父節點
當前提交
a596008919
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/main.c

+ 1 - 1
src/main.c

@@ -193,7 +193,7 @@ static void check_expired_dcc()
 /* this also expires irc dcc_cmd auths */
 /* this also expires irc dcc_cmd auths */
 static void expire_simuls() {
 static void expire_simuls() {
   for (int idx = 0; idx < dcc_total; idx++) {
   for (int idx = 0; idx < dcc_total; idx++) {
-    if (dcc[idx].type && dcc[idx].simul > 0) {
+    if (dcc[idx].type && dcc[idx].simul > -1) {
       if ((now - dcc[idx].simultime) >= 100) { /* expire simuls after 100 seconds (re-uses idx, so it wont fill up) */
       if ((now - dcc[idx].simultime) >= 100) { /* expire simuls after 100 seconds (re-uses idx, so it wont fill up) */
         dcc[idx].simul = -1;
         dcc[idx].simul = -1;
 // FIXME: THIS NEEDS TO BE UPDATED FOR CLASS
 // FIXME: THIS NEEDS TO BE UPDATED FOR CLASS