Fix possible NPE

This commit is contained in:
Aidan Brady 2013-10-26 23:23:11 -04:00
parent c730fab1eb
commit 3dab655328

View file

@ -49,9 +49,13 @@ public class ClientConnectionHandler implements IConnectionHandler
@Override
public void connectionClosed(INetworkManager manager)
{
if(voiceClient != null)
{
voiceClient.disconnect();
voiceClient = null;
}
Mekanism.proxy.unloadSoundHandler();
}