1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2025-09-09 00:59:39 +02:00

Add missing 'synchronized' keywords to Manager.getInstanceFor()

Fixes SMACK-865.
This commit is contained in:
Florian Schmaus 2019-04-14 21:41:59 +02:00
parent 6076a9dfa5
commit 488055948d
8 changed files with 8 additions and 8 deletions

View file

@ -620,7 +620,7 @@ public class JingleSession extends JingleNegotiator implements MediaReceivedList
* A XMPP connection
* @return a Jingle session
*/
public static JingleSession getInstanceFor(XMPPConnection con) {
public static synchronized JingleSession getInstanceFor(XMPPConnection con) {
if (con == null) {
throw new IllegalArgumentException("XMPPConnection cannot be null");
}