geforkt von SteamWar/BungeeCore
Merge pull request 'Fix Node NumberFormatException' (#251) from Node into master
Reviewed-on: SteamWar/BungeeCore#251 Reviewed-by: Lixfel <lixfel@steamwar.de>
Dieser Commit ist enthalten in:
Commit
5f2465ddfc
@ -191,7 +191,7 @@ public abstract class Node {
|
||||
int c;
|
||||
try (BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(process.getInputStream()))) {
|
||||
c = Integer.parseInt(bufferedReader.readLine());
|
||||
} catch (IOException e) {
|
||||
} catch (IOException | NumberFormatException e) {
|
||||
BungeeCore.get().getLogger().log(Level.SEVERE, "Could not read cores of" + remote, e);
|
||||
c = 1;
|
||||
}
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren