Catch socket exception for code clarity even though I dont think it was causing any problems
This commit is contained in:
+2
@@ -163,6 +163,8 @@ public class LocalTeamspeakClientSocket
|
||||
|
||||
try {
|
||||
socket.receive(packet);
|
||||
} catch (SocketTimeoutException ex) {
|
||||
throw ex;
|
||||
} catch (SocketException ex) {
|
||||
if (socket.isClosed()) throw new EOFException();
|
||||
else throw ex;
|
||||
|
||||
Reference in New Issue
Block a user