Changeset 559

Show
Ignore:
Timestamp:
2007-08-15 20:56:03 (1 year ago)
Author:
MaierMan
Message:

fixing #308: throw resumable files where the connection is cut into paused mode.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/chrome/content/dta/manager.js

    r558 r559  
    21682168                } 
    21692169                else if (!d.is(PAUSED, CANCELED, FINISHING) && d.chunks.length == 1 && d.chunks[0] == c) { 
    2170                         d.fail( 
    2171                                 _('errmismatchtitle'), 
    2172                                 _('errmismatchtext', [c.written, c.total]), 
    2173                                 _('errmismatchtitle') 
    2174                         ); 
     2170                        if (d.resumable) { 
     2171                                d.pause(); 
     2172                                d.status = _('errmismatchtitle'); 
     2173                        } 
     2174                        else { 
     2175                                d.fail( 
     2176                                        _('errmismatchtitle'), 
     2177                                        _('errmismatchtext', [d.partialSize, d.totalSize]), 
     2178                                        _('errmismatchtitle') 
     2179                                ); 
     2180                        } 
    21752181                        return;                  
    21762182                }