/** * Cancels any pending re-transmission of an outbound flight that has been registered previously * using the {@link #setPendingFlight(DTLSFlight)} method. * * <p>This method is usually invoked once an flight has been acknowledged by the peer. */ public void cancelPendingFlight() { if (pendingFlight != null) { pendingFlight.getRetransmitTask().cancel(); pendingFlight.setRetransmitTask(null); pendingFlight = null; } }