Ignore:
Timestamp:
02/12/14 10:57:36 (10 years ago)
Author:
pharms
Message:
  • corrected graceful shutdown
Location:
trunk/autoquest-htmlmonitor
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/autoquest-htmlmonitor/bin/stop.sh

    r1225 r1365  
    3535  #Kill this autoquest-htmlmonitor-process 
    3636  kill "$PID" 
     37  sleep 2 
    3738  # Check if Process is no more 
    3839  CHECK=$(ps ax | grep "$JAR_FILE" | grep -v ' grep ' | awk '{print $1}') 
  • trunk/autoquest-htmlmonitor/src/main/java/de/ugoe/cs/autoquest/htmlmonitor/ShutdownHook.java

    r927 r1365  
    4848        for (HtmlMonitorComponent component : components) { 
    4949            if (component != null) { 
    50                 component.stop(); 
     50                try { 
     51                    component.stop(); 
     52                } 
     53                catch (Exception e) { 
     54                    // ignore and go on 
     55                } 
    5156            } 
    5257        } 
Note: See TracChangeset for help on using the changeset viewer.