|
@@ -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;
|