diff --git a/.idea/.gitignore b/.idea/.gitignore deleted file mode 100644 index 5c98b42..0000000 --- a/.idea/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -# Default ignored files -/workspace.xml \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml deleted file mode 100644 index 94a25f7..0000000 --- a/.idea/vcs.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/src/de/steamwar/spectatesystem/FightServerConnection.java b/src/de/steamwar/spectatesystem/FightServerConnection.java index 5c91431..a9afe4a 100644 --- a/src/de/steamwar/spectatesystem/FightServerConnection.java +++ b/src/de/steamwar/spectatesystem/FightServerConnection.java @@ -67,6 +67,9 @@ public class FightServerConnection { * 1 - No Connect * 2 - Error while cleanup * 3 - Error while pre cleanup + * 4 - Error while writing + * 5 - Error while reading + * 6 - Error while flushing */ private int errorCode = 0; @@ -128,7 +131,7 @@ public class FightServerConnection { try { return inputStream.read(); } catch (IOException e) { - errorCode = 3; + errorCode = 5; return -2; } } @@ -139,7 +142,7 @@ public class FightServerConnection { inputStream.read(bytes); return bytes; } catch (IOException e) { - errorCode = 3; + errorCode = 5; return new byte[length]; } } @@ -176,7 +179,7 @@ public class FightServerConnection { try { outputStream.flush(); } catch (IOException e) { - errorCode = 5; + errorCode = 6; } }