Fixed a race conditon when adding a transport and then an endpoint.

To fix issue #3611966, KeyManagerImpl's handling of TransportAddedEvent
was made asynchronous. This made it possible for a thread to call
KeyManager.endpointAdded() before the KeyManager had asynchronously
handled the TransportAddedEvent from a previous call to
DatabaseComponent.addTransport().
This commit is contained in:
akwizgran
2013-05-14 20:54:23 +01:00
parent 673d7fa0c3
commit dddd15cd10
7 changed files with 22 additions and 20 deletions

View File

@@ -27,5 +27,5 @@ public interface KeyManager {
* Called whenever an endpoint has been added. The initial secret
* is erased before returning.
*/
void endpointAdded(Endpoint ep, byte[] initialSecret);
void endpointAdded(Endpoint ep, long maxLatency, byte[] initialSecret);
}