Changeset 14295


Ignore:
Timestamp:
02/24/12 21:38:01 (10 years ago)
Author:
nit
Message:

[titan] increase showtime on download err

File:
1 edited

Legend:

Unmodified
Added
Removed
  • titan/titan/download.h

    r14082 r14295  
    55{
    66        debug(1000, "in");
    7         int rcret = -1, tmpscreencalc = 0, count = 0, ret = 0, fromthread = 0;
     7        int rcret = -1, tmpscreencalc = 0, count = 0, ret = 0, fromthread = 0, sleeptime = 2;
    88        struct skin* download = getscreen("download");
    99        struct skin* progress = getscreennode(download, "progress");
     
    9797
    9898        if(dnode->ret > 0 && rcret != getrcconfigint("rcexit", NULL))
     99        {
    99100                changetext(file, _("download error"));
     101                sleeptime = 5;
     102        }
    100103        else
    101104                changetext(file, _("wait for stopping download"));
    102105        drawscreen(download, 0);
    103106        sockclose(&dnode->connfd);
    104         sleep(2);
     107        sleep(sleeptime);
    105108        count = 0;
    106109        while(dnode->ret < 0 && count < 10)
Note: See TracChangeset for help on using the changeset viewer.