In my Android app when closing the connection(like turning of WiFi) I'm getting an infinite number of this log message [cds] shutdowninput in read
which interrupts my app and makes it do tons of unnecessary input checking, I'm using java socket programming and I tried to check for that issue by calling isInputShutdown()
but got nothing, that how I am trying:
public String getServerResponse() throws Exception{
while(true){
BufferedReader in = new BufferedReader(new InputStreamReader(socket.getInputStream(), Charset.forName("UTF-8")));
if(xbmc_socket.isInputShutdown()){
return "stopped";
}else{
//continue(and that's what it always doing)
}
}
}