Make the obtain*Addresses methods static again, because they modify
static fields and should obtain the lock on the class.
This commit is contained in:
parent
947f06ae22
commit
b228636412
@ -112,7 +112,7 @@ public class AwsCandidateHarvester
|
||||
* @return <tt>true</tt> if we managed to obtain addresses or someone else
|
||||
* had already achieved that before us, <tt>false</tt> otherwise.
|
||||
*/
|
||||
private synchronized boolean obtainEC2Addresses()
|
||||
private static synchronized boolean obtainEC2Addresses()
|
||||
{
|
||||
if(mask != null && face != null)
|
||||
return true;
|
||||
|
||||
@ -109,7 +109,7 @@ public class StunMappingCandidateHarvester
|
||||
* @return <tt>true</tt> if we managed to obtain addresses or someone else
|
||||
* had already achieved that before us, <tt>false</tt> otherwise.
|
||||
*/
|
||||
private synchronized boolean obtainAddresses()
|
||||
private static synchronized boolean obtainAddresses()
|
||||
{
|
||||
if(mask != null && face != null)
|
||||
return true;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user