From 6e3f5c1606326d53adf565bc58be734f30be56e6 Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Mon, 28 Jul 2014 17:05:29 +1200 Subject: [PATCH] Fix the async sounds listener --- src/me/libraryaddict/disguise/utilities/PacketsManager.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/me/libraryaddict/disguise/utilities/PacketsManager.java b/src/me/libraryaddict/disguise/utilities/PacketsManager.java index f4f31c9a..8084b3f3 100644 --- a/src/me/libraryaddict/disguise/utilities/PacketsManager.java +++ b/src/me/libraryaddict/disguise/utilities/PacketsManager.java @@ -1066,8 +1066,10 @@ public class PacketsManager { if (soundsListenerEnabled) { asyncSoundsListener = ProtocolLibrary.getProtocolManager().getAsynchronousManager() .registerAsyncHandler(soundsListener); + asyncSoundsListener.syncStart(); } else { ProtocolLibrary.getProtocolManager().getAsynchronousManager().unregisterAsyncHandler(asyncSoundsListener); + asyncSoundsListener.syncStop(); } } }