Fix the async sounds listener
This commit is contained in:
parent
a06a81182e
commit
6e3f5c1606
@ -1066,8 +1066,10 @@ public class PacketsManager {
|
|||||||
if (soundsListenerEnabled) {
|
if (soundsListenerEnabled) {
|
||||||
asyncSoundsListener = ProtocolLibrary.getProtocolManager().getAsynchronousManager()
|
asyncSoundsListener = ProtocolLibrary.getProtocolManager().getAsynchronousManager()
|
||||||
.registerAsyncHandler(soundsListener);
|
.registerAsyncHandler(soundsListener);
|
||||||
|
asyncSoundsListener.syncStart();
|
||||||
} else {
|
} else {
|
||||||
ProtocolLibrary.getProtocolManager().getAsynchronousManager().unregisterAsyncHandler(asyncSoundsListener);
|
ProtocolLibrary.getProtocolManager().getAsynchronousManager().unregisterAsyncHandler(asyncSoundsListener);
|
||||||
|
asyncSoundsListener.syncStop();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user