Ignore:
Timestamp:
2010-04-01T02:04:01+02:00 (15 years ago)
Author:
pieren
Message:

minor fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/CadastreInterface.java

    r20412 r20765  
    6868        if (wmsLayer.getName().equals(""))
    6969            return false;
    70         if (wmsLayer.getName().equals(lastWMSLayerName))
     70        boolean isCookieExpired = isCookieExpired();
     71        if (wmsLayer.getName().equals(lastWMSLayerName) && !isCookieExpired)
    7172            return true;
    7273        // open the session with the French Cadastre web front end
    7374        downloadCancelled = false;
    7475        try {
    75             if (cookie == null || isCookieExpired())
     76            if (cookie == null || isCookieExpired) {
    7677                getCookie();
     78                interfaceRef = null;
     79            }
    7780            if (cookie == null)
    7881                throw new WMSException(tr("Cannot open a new client session.\nServer in maintenance or temporary overloaded."));
Note: See TracChangeset for help on using the changeset viewer.