Skip to content

Commit 18a8d0c

Browse files
committed
burp fix
1 parent 3e63475 commit 18a8d0c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/main/java/io/mixeway/scanmanager/integrations/burpee/apiclient/BurpEEApiClient.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,14 @@ public void runScan(WebApp webApp, Scanner scanner) throws Exception {
8686
} catch (HttpClientErrorException e){
8787
log.error("Cannot run scan for {} - {}", webApp.getUrl(), e.getStatusCode());
8888
} catch (ResourceAccessException rao) {
89+
webApp.setInQueue(false);
90+
webApp.setRunning(false);
91+
scanner.setRunningScans(scanner.getRunningScans()-1);
8992
log.error("Resource access exception for {} - {}", webApp.getUrl(), rao.getLocalizedMessage());
9093
} catch (HttpServerErrorException e) {
9194
webApp.setInQueue(false);
95+
webApp.setRunning(false);
96+
scanner.setRunningScans(scanner.getRunningScans()-1);
9297
log.error ("Cannot run scan for {} - server error {} ", webApp.getUrl(),e.getStatusCode());
9398
}
9499
}

0 commit comments

Comments
 (0)