Skip to content

Commit

Permalink
Merge pull request #1 from Horcrux7/agent-failed
Browse files Browse the repository at this point in the history
Agent should failed on SocketNotFoundException jitsi#280
  • Loading branch information
Horcrux7 committed Jun 3, 2024
2 parents a53b402 + d9245d9 commit 7679666
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/main/java/org/ice4j/ice/ConnectivityCheckClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -344,15 +344,15 @@ protected TransactionID startCheckForPair(
{
logger.trace("checking pair " + candidatePair + " tid " + tran);
}

return tran;
}
catch (NetAccessManager.SocketNotFoundException e)
{
logger.info("Could not start connectivity check: " + e.getMessage());
}
catch (Exception ex)
{
tran = null;

IceSocketWrapper stunSocket = localCandidate.getStunSocket(null);

if (stunSocket != null)
Expand All @@ -376,7 +376,7 @@ protected TransactionID startCheckForPair(
}
}

return tran;
return null;
}

/**
Expand Down Expand Up @@ -944,6 +944,7 @@ protected void run()
"Pair failed: "
+ pairToCheck.toShortString());
pairToCheck.setStateFailed();
updateCheckListAndTimerStates(pairToCheck);
}
else
{
Expand Down

0 comments on commit 7679666

Please sign in to comment.