ソースを参照

Update receiveSize for resumed DCC receives

This makes it send the right ACK packets, which fixes resumes not finishing at all
Fixes issue 3726

Change-Id: Icc734b58080413c4e8afbc1ba7f251b585acfd3d
Reviewed-on: http://gerrit.dmdirc.com/841
Automatic-Compile: Chris Smith <chris@dmdirc.com>
Reviewed-by: Chris Smith <chris@dmdirc.com>
Automatic-Compile: DMDirc Local Commits <dmdirc@googlemail.com>
tags/0.6.3
Chris Smith 14年前
コミット
8eef7d7a40
1個のファイルの変更3行の追加1行の削除
  1. 3
    1
      src/com/dmdirc/addons/dcc/DCCTransfer.java

+ 3
- 1
src/com/dmdirc/addons/dcc/DCCTransfer.java ファイルの表示

@@ -298,14 +298,16 @@ public class DCCTransfer extends DCC {
298 298
      */
299 299
     public int setFileStart(final int startpos) {
300 300
         this.startpos = startpos;
301
+        this.readSize = startpos;
302
+
301 303
         if (transferType == TransferType.SEND && fileIn != null) {
302 304
             try {
303 305
                 this.startpos = fileIn.skipBytes(startpos);
304
-                readSize = startpos;
305 306
                 return this.startpos;
306 307
             } catch (IOException ioe) {
307 308
             }
308 309
         }
310
+
309 311
         return -1;
310 312
     }
311 313
 

読み込み中…
キャンセル
保存