From 0996a44a613b89c7d6db69741acb9650cb026af4 Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Wed, 23 Apr 2014 09:43:22 +0200 Subject: [PATCH] Replace sync block with sync method in XMPPTCPConnection. --- .../main/java/org/jivesoftware/smack/XMPPTCPConnection.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tcp/src/main/java/org/jivesoftware/smack/XMPPTCPConnection.java b/tcp/src/main/java/org/jivesoftware/smack/XMPPTCPConnection.java index 885e1833d..e6c0123df 100644 --- a/tcp/src/main/java/org/jivesoftware/smack/XMPPTCPConnection.java +++ b/tcp/src/main/java/org/jivesoftware/smack/XMPPTCPConnection.java @@ -844,10 +844,8 @@ public class XMPPTCPConnection extends XMPPConnection { * Notifies the XMPP connection that stream compression was denied so that * the connection process can proceed. */ - void streamCompressionDenied() { - synchronized (this) { - this.notify(); - } + synchronized void streamCompressionDenied() { + this.notify(); } /**