Catch NullReferenceException while reconnecting

Exception thrown when no server is currently connected. See issue #19
This commit is contained in:
ORelio 2014-03-12 18:01:31 +01:00
parent 7f17eef989
commit bac660d410

View file

@ -559,6 +559,7 @@ namespace MinecraftClient
} }
catch (SocketException) { } catch (SocketException) { }
catch (System.IO.IOException) { } catch (System.IO.IOException) { }
catch (NullReferenceException) { }
} }
private List<ChatBot> bots = new List<ChatBot>(); private List<ChatBot> bots = new List<ChatBot>();