private StunMessage notifyListeners(final StunMessage response, final Function<StunTransactionListener, Boolean> closure) { if (isSameTransaction(response)) { m_log.info("About to notify " + this.m_transactionListeners.size() + " listeners..."); synchronized (this.m_transactionListeners) { for (final StunTransactionListener stl : this.m_transactionListeners) { closure.apply(stl); } } return response; } else { m_log.warn("Received response from different transaction."); return new NullStunMessage(); } }
return new NullStunMessage();
return new NullStunMessage();
return new NullStunMessage();