Skip to content

Commit

Permalink
Merge pull request #9 from Hannah-PortSwigger/pause-error
Browse files Browse the repository at this point in the history
#6 Only report error if error occurs while attack is running.
  • Loading branch information
Hannah-PortSwigger authored Jan 8, 2024
2 parents 41e4f1a + 9c3cf88 commit c277a13
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ plugins {
}

group = 'net.portswigger'
version = '1.1.0'
version = '1.1.1'

repositories {
mavenLocal()
Expand Down
5 changes: 4 additions & 1 deletion src/main/java/queue/SendMessageQueueConsumer.java
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,10 @@ public void run()
attackHandler.executeCallback(webSocketConnectionMessage);
} catch (InterruptedException e)
{
logger.logError("Failed to take message from sendMessageQueue");
if (isAttackRunning.get())
{
logger.logError("Failed to take message from sendMessageQueue");
}
}
}
}
Expand Down
5 changes: 4 additions & 1 deletion src/main/java/queue/TableBlockingQueueConsumer.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,10 @@ public void run()
EventQueue.invokeLater(() -> tableModel.add(connectionMessage));
} catch (InterruptedException e)
{
logger.logError("Error taking from tableBlockingQueue.");
if (isAttackRunning.get())
{
logger.logError("Error taking from tableBlockingQueue.");
}
}
}
}
Expand Down

0 comments on commit c277a13

Please sign in to comment.