Changeset 1126

Show
Ignore:
Timestamp:
2008-11-04 18:29:36 (2 months ago)
Author:
MaierMan
Message:

Set offline mode at the right time

Files:

Legend:

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

    r1121 r1126  
    522522                        return true; 
    523523                } 
    524                 this.offline = true; 
    525524                if (!this._forceClose && !this._canClose()) { 
    526525                        delete this._forceClose; 
    527526                        return false; 
    528527                } 
     528                this.offline = true; 
    529529 
    530530                // stop everything! 
     
    21402140                        Debug.log('error setting up ftp channel', ex); 
    21412141                } 
     2142        } 
     2143        try { 
     2144                prio = this._chan.QueryInterface(Ci.nsISupportsPriority); 
     2145                prio.adjustPriority(Ci.nsISupportsPriority.PRIORITY_LOW); 
     2146                Debug.logString("set priority"); 
     2147        } 
     2148        catch (ex) { 
     2149                Debug.log("Failed setting priority", ex); 
    21422150        } 
    21432151        this.c.running = true;