Ignore:
Timestamp:
2024-05-01T17:29:55+12:00 (5 weeks ago)
Author:
anupama
Message:

GsdlCollageApplet. 1. On stopRunning, DisplayImages may be looping in the graphics thread and in that case would through an exception when interrupted. I know check isStopped() within the loop to more tidily exit in such a case. 2. Finally remembered to handle the case of if there's no GS3 running server or no internet connection of any kind. It used to be the case that GsdlCollageApplet would display the Downloading message forever, noticeable when run as a commandline application and if I forgot to run the GS3 server. Now if downloading fails it will say so and come to halt instead of waiting for downloads and displaying the message Downloading forever. 3. Some useful local changes of debugging output on an exception in CURL.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/src/java/org/greenstone/applet/GsdlCollageApplet/DownloadUrls.java

    r38930 r38968  
    4747     */
    4848    private boolean stop_downloading = false;
     49
     50    /** Set to true when unable to download perhaps because of no internet connection. */
     51    private boolean unable_to_download = false;
    4952   
    5053    /** CHRIS - Holds the contents of the collection's assoc directory */
     
    601604   
    602605    else {
    603         System.err.println("Unable able to download "+new_url);
     606        System.err.println("Unable to download "+new_url);
     607        unable_to_download = true;
    604608    }
    605609
     
    609613    }
    610614
     615    public boolean wasUnableToDownload() { return unable_to_download; }
     616   
    611617   
    612618    /** Used in cases where the image maps to a url outside of it's original location.
Note: See TracChangeset for help on using the changeset viewer.