diff --git a/src/main/java/org/ice4j/ice/ConnectivityCheckClient.java b/src/main/java/org/ice4j/ice/ConnectivityCheckClient.java index 983a72ba..df721b3f 100644 --- a/src/main/java/org/ice4j/ice/ConnectivityCheckClient.java +++ b/src/main/java/org/ice4j/ice/ConnectivityCheckClient.java @@ -344,6 +344,8 @@ protected TransactionID startCheckForPair( { logger.trace("checking pair " + candidatePair + " tid " + tran); } + + return tran; } catch (NetAccessManager.SocketNotFoundException e) { @@ -351,8 +353,6 @@ protected TransactionID startCheckForPair( } catch (Exception ex) { - tran = null; - IceSocketWrapper stunSocket = localCandidate.getStunSocket(null); if (stunSocket != null) @@ -376,7 +376,7 @@ protected TransactionID startCheckForPair( } } - return tran; + return null; } /** @@ -950,6 +950,10 @@ protected void run() pairToCheck.setStateInProgress(transactionID); } } + if (pairToCheck.getState() == CandidatePairState.FAILED) + { + updateCheckListAndTimerStates(pairToCheck); + } } else {