Skip to content

Commit

Permalink
Update useIPScanner.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
ircfspace committed Mar 2, 2024
1 parent 14e835e commit 3e905ad
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/hooks/useIPScanner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -200,8 +200,9 @@ export const useIPScanner = ({ allIps }: IPScannerProps) => {

testCount++;
} catch (error) {
// don't increase testResult if it's not an abort error
if (!(error instanceof Error && (error.name === "AbortError" || error.name === "TypeError"))) {
if ( error instanceof Error && error.name === "AbortError") {
//
} else {
testCount++;
}
}
Expand Down

0 comments on commit 3e905ad

Please sign in to comment.