Synchronize access to candidateSockets.get(). (#203)
* Synchronize access to candidateSockets.get(). * Remove XXX comment about synchronization.
This commit is contained in:
parent
9dc08bd299
commit
d7c0e27a1c
@ -379,7 +379,6 @@ public class SinglePortUdpHarvester
|
||||
componentSocket.add(multiplexing);
|
||||
}
|
||||
|
||||
// XXX is this necessary?
|
||||
synchronized (candidateSockets)
|
||||
{
|
||||
IceSocketWrapper oldSocket
|
||||
@ -405,8 +404,10 @@ public class SinglePortUdpHarvester
|
||||
protected IceSocketWrapper getCandidateIceSocketWrapper(
|
||||
SocketAddress remoteAddress)
|
||||
{
|
||||
return candidateSockets.get(remoteAddress);
|
||||
synchronized (candidateSockets)
|
||||
{
|
||||
return candidateSockets.get(remoteAddress);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user