Skip to content

Commit

Permalink
Agent should failed on SocketNotFoundException jitsi#280
Browse files Browse the repository at this point in the history
If there are no matching candidate because a configuration mistake then the agent should failed.
  • Loading branch information
Horcrux7 authored Jun 3, 2024
1 parent a53b402 commit d9245d9
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 d9245d9

Please sign in to comment.