Przeglądaj źródła

Fixes issue 3031: DCC plugin CPU/memory usage issues

Change-Id: I16eb04146240db986ead58669676fbf66c7fab9b
Reviewed-on: http://gerrit.dmdirc.com/745
Reviewed-by: Chris Smith <chris@dmdirc.com>
Automatic-Compile: DMDirc Local Commits <dmdirc@googlemail.com>
tags/0.6.3
Gregory Holmes 14 lat temu
rodzic
commit
8d4ca3e2c6
1 zmienionych plików z 1 dodań i 0 usunięć
  1. 1
    0
      src/com/dmdirc/addons/dcc/DCC.java

+ 1
- 0
src/com/dmdirc/addons/dcc/DCC.java Wyświetl plik

@@ -197,6 +197,7 @@ public abstract class DCC implements Runnable {
197 197
 
198 198
             // Sleep for a short period of time to reduce CPU usage.
199 199
             try {
200
+                Thread.yield();
200 201
                 Thread.sleep(100);
201 202
             } catch (InterruptedException ie) {
202 203
             }

Ładowanie…
Anuluj
Zapisz