Browse Source

Don't rate limit DCCs to 10k/s, as this is 2010.

Change-Id: Ifedf37d301dbc4d34de370e3803b66310094bf3a
Reviewed-on: http://gerrit.dmdirc.com/747
Automatic-Compile: Gregory Holmes <greg@dmdirc.com>
Reviewed-by: Gregory Holmes <greg@dmdirc.com>
tags/0.6.3
Chris Smith 14 years ago
parent
commit
ebff89de44
1 changed files with 2 additions and 6 deletions
  1. 2
    6
      src/com/dmdirc/addons/dcc/DCC.java

+ 2
- 6
src/com/dmdirc/addons/dcc/DCC.java View File

@@ -195,12 +195,8 @@ public abstract class DCC implements Runnable {
195 195
                 }
196 196
             }
197 197
 
198
-            // Sleep for a short period of time to reduce CPU usage.
199
-            try {
200
-                Thread.yield();
201
-                Thread.sleep(100);
202
-            } catch (InterruptedException ie) {
203
-            }
198
+            // Yield to reduce CPU usage.
199
+            Thread.yield();
204 200
         }
205 201
         // Socket closed
206 202
 

Loading…
Cancel
Save