Fix possible NPE
This commit is contained in:
parent
c730fab1eb
commit
3dab655328
1 changed files with 6 additions and 2 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue