From 5af4f1a5d1207d9c08a6c4d98b7ea21340f7e7ba Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Thu, 23 Apr 2015 21:45:33 +0200 Subject: [PATCH] Synchronize MultiUserchat.changeNickname(Resourcepart) --- .../main/java/org/jivesoftware/smackx/muc/MultiUserChat.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/smack-extensions/src/main/java/org/jivesoftware/smackx/muc/MultiUserChat.java b/smack-extensions/src/main/java/org/jivesoftware/smackx/muc/MultiUserChat.java index 7d341c5f9..0d8a09e64 100644 --- a/smack-extensions/src/main/java/org/jivesoftware/smackx/muc/MultiUserChat.java +++ b/smack-extensions/src/main/java/org/jivesoftware/smackx/muc/MultiUserChat.java @@ -969,7 +969,7 @@ public class MultiUserChat { * @throws InterruptedException * @throws MucNotJoinedException */ - public void changeNickname(Resourcepart nickname) throws NoResponseException, XMPPErrorException, NotConnectedException, InterruptedException, MucNotJoinedException { + public synchronized void changeNickname(Resourcepart nickname) throws NoResponseException, XMPPErrorException, NotConnectedException, InterruptedException, MucNotJoinedException { StringUtils.requireNotNullOrEmpty(nickname, "Nickname must not be null or blank."); // Check that we already have joined the room before attempting to change the // nickname.