SteamWar/BungeeCore
Archiviert
13
2

Add catch for IOException
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Dieser Commit ist enthalten in:
Chaoscaot 2023-04-06 17:22:20 +02:00
Ursprung edb108b7b3
Commit f624d2893d

Datei anzeigen

@ -170,8 +170,6 @@ public class SchematicSearch {
BungeeCore.send(player, ChatMessageType.ACTION_BAR, "§7" + s.replace("", "§e█§7")); BungeeCore.send(player, ChatMessageType.ACTION_BAR, "§7" + s.replace("", "§e█§7"));
} }
} }
String s = readInputStream(stderr); String s = readInputStream(stderr);
if (s.contains("s[")) { if (s.contains("s[")) {
s = s.substring(s.lastIndexOf("s[") + 1); s = s.substring(s.lastIndexOf("s[") + 1);
@ -228,6 +226,8 @@ public class SchematicSearch {
Message.send("SCHEMATIC_SEARCH_TOO_MANY_RESULTS", player); Message.send("SCHEMATIC_SEARCH_TOO_MANY_RESULTS", player);
} }
end();
} catch (IOException | InterruptedException e) {
end(); end();
} catch (Exception e) { } catch (Exception e) {
end(); end();
@ -240,9 +240,11 @@ public class SchematicSearch {
if(process != null && process.isAlive()) { if(process != null && process.isAlive()) {
process.destroy(); process.destroy();
} }
if(pattern != null) { if(pattern != null) {
pattern.delete(); pattern.delete();
} }
if(task != null) { if(task != null) {
task.cancel(); task.cancel();
} }