Browse Source

Let's implement turbo DCC vaguely properly

Fixes issue 3728

Change-Id: I68143b7557d0232ac681296adce9de8e43a926eb
Reviewed-on: http://gerrit.dmdirc.com/843
Automatic-Compile: Chris Smith <chris@dmdirc.com>
Reviewed-by: Shane Mc Cormack <shane@dmdirc.com>
tags/0.6.3
Chris Smith 14 years ago
parent
commit
dcee7cd427
1 changed files with 12 additions and 3 deletions
  1. 12
    3
      src/com/dmdirc/addons/dcc/DCCTransfer.java

+ 12
- 3
src/com/dmdirc/addons/dcc/DCCTransfer.java View File

@@ -411,11 +411,20 @@ public class DCCTransfer extends DCC {
411 411
                     handler.dataTransfered(this, bytesRead);
412 412
                 }
413 413
                 fileOut.write(data, 0, bytesRead);
414
-                // Send ack
415
-                out.writeInt((int) readSize);
416
-                out.flush();
414
+
415
+                if (!turbo) {
416
+                    // Send ack
417
+                    out.writeInt((int) readSize);
418
+                    out.flush();
419
+                }
420
+
417 421
                 if (readSize == size) {
418 422
                     fileOut.close();
423
+
424
+                    if (turbo) {
425
+                        in.close();
426
+                    }
427
+
419 428
                     return false;
420 429
                 } else {
421 430
                     return true;

Loading…
Cancel
Save