greenstone.org greenstone wiki greenstone trac planet greenstone

Changeset 17785

Show
Ignore:
Timestamp:
2008-11-07 14:10:52 (2 months ago)
Author:
ak19
Message:

Bugfix 1 of 2. On Linux, when a currently running Download Job is closed using the Close button in the download pannel, suddenly the GLI app window seemed to close as well (without the program actually terminating in most cases, since the download thread is still running, waiting for downloads). This only occurred on Windows. Now this has been fixed in the perl code by exiting the for loop that waits to kill the wget child process--for some reason, forgetting to break out of the for loop did not pose a similar problem on Windows thus far.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • gsdl/trunk/perllib/downloaders/WgetDownload.pm

    r17664 r17785  
    309309                            close($rh);                 #close($serverSocket); 
    310310                            print $client "Perl terminated wget and is about to exit\n"; 
     311                            last;                       # out of inner for loop 
    311312                        } 
    312313                        else { # the process may just be starting up, wait 
     
    458459                            close($rh);                 #close($serverSocket); 
    459460                            print $client "Perl terminated wget and is about to exit\n"; 
     461                            last;                       # out of inner for loop 
    460462                        } 
    461463                        else { # the process may just be starting up, wait