Răsfoiți Sursa

* Fixed a small idx bug check in closing remote simuls

svn: 2031
Bryan Drewery 21 ani în urmă
părinte
comite
a596008919
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  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 */
 static void expire_simuls() {
   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) */
         dcc[idx].simul = -1;
 // FIXME: THIS NEEDS TO BE UPDATED FOR CLASS