Skip to content

Commit

Permalink
Fixed the UI hang. Threaded the wrong bit of code before.
Browse files Browse the repository at this point in the history
  • Loading branch information
tstOutpost24 committed Oct 1, 2024
1 parent 009fcd8 commit 04db672
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/main/kotlin/CustomContextMenuItemsProvider.kt
Original file line number Diff line number Diff line change
Expand Up @@ -113,11 +113,10 @@ class CustomContextMenuItemsProvider(private val api: MontoyaApi) : ContextMenuI
runButton.addActionListener {
// Close the window when the button is clicked
frame.dispose()

// Run the scan, but only if there isn't arbitrary origin reflection. Otherwise no point!
if (!checkArbitraryOriginReflection(api, selectedRequest)) {
//Run in thread to prevent UI from hanging....
thread {
//Run in thread to prevent UI from hanging....
thread {
// Run the scan, but only if there isn't arbitrary origin reflection. Otherwise no point!
if (!checkArbitraryOriginReflection(api, selectedRequest)) {
runTrustedDomainScan(textArea.text, selectedRequest)
}
}
Expand Down

0 comments on commit 04db672

Please sign in to comment.