Changeset 10643 for trunk/gli


Ignore:
Timestamp:
2005-09-26T15:10:56+12:00 (19 years ago)
Author:
kjdon
Message:

changed this so isRunning() does check to see if it is actually running - delete collection, save etc don't get errors if the server has been shut down

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/LocalLibraryServer.java

    r10642 r10643  
    8484    static public boolean isRunning()
    8585    {
    86     return running;
     86    if (!running) return false;
     87    gsdlsite_cfg_file.load();
     88    if (gsdlsite_cfg_file.getURL() == null)  return false;
     89    return true;
    8790    }
    8891
     
    225228   
    226229    static public void checkServerRunning() {
     230    if (!running) return; // don't worry about it if its not supposed to be running
    227231    gsdlsite_cfg_file.load();
    228232    if (gsdlsite_cfg_file.getURL() == null) {
Note: See TracChangeset for help on using the changeset viewer.