geforkt von SteamWar/BungeeCore
Fix Node NumberFormatException
Dieser Commit ist enthalten in:
Ursprung
b18b4a73d3
Commit
5918a2530a
@ -191,7 +191,7 @@ public abstract class Node {
|
|||||||
int c;
|
int c;
|
||||||
try (BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(process.getInputStream()))) {
|
try (BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(process.getInputStream()))) {
|
||||||
c = Integer.parseInt(bufferedReader.readLine());
|
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);
|
BungeeCore.get().getLogger().log(Level.SEVERE, "Could not read cores of" + remote, e);
|
||||||
c = 1;
|
c = 1;
|
||||||
} catch (NumberFormatException e) {
|
} catch (NumberFormatException e) {
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren