Close InputStream and OutputStream separately from Socket.

This commit is contained in:
MobiusDevelopment 2023-06-28 07:41:52 +03:00
parent acb3892068
commit 6793c515d7
31 changed files with 744 additions and 62 deletions

View File

@ -70,14 +70,36 @@ public class NetClient
*/
public void disconnect()
{
if (_inputStream != null)
{
try
{
_inputStream.close();
_inputStream = null;
}
catch (Exception ignored)
{
}
}
if (_outputStream != null)
{
try
{
_outputStream.close();
_outputStream = null;
}
catch (Exception ignored)
{
}
}
if (_socket != null)
{
try
{
_socket.close();
_socket = null;
_inputStream = null;
_outputStream = null;
}
catch (Exception ignored)
{

View File

@ -70,14 +70,36 @@ public class NetClient
*/
public void disconnect()
{
if (_inputStream != null)
{
try
{
_inputStream.close();
_inputStream = null;
}
catch (Exception ignored)
{
}
}
if (_outputStream != null)
{
try
{
_outputStream.close();
_outputStream = null;
}
catch (Exception ignored)
{
}
}
if (_socket != null)
{
try
{
_socket.close();
_socket = null;
_inputStream = null;
_outputStream = null;
}
catch (Exception ignored)
{

View File

@ -70,14 +70,36 @@ public class NetClient
*/
public void disconnect()
{
if (_inputStream != null)
{
try
{
_inputStream.close();
_inputStream = null;
}
catch (Exception ignored)
{
}
}
if (_outputStream != null)
{
try
{
_outputStream.close();
_outputStream = null;
}
catch (Exception ignored)
{
}
}
if (_socket != null)
{
try
{
_socket.close();
_socket = null;
_inputStream = null;
_outputStream = null;
}
catch (Exception ignored)
{

View File

@ -70,14 +70,36 @@ public class NetClient
*/
public void disconnect()
{
if (_inputStream != null)
{
try
{
_inputStream.close();
_inputStream = null;
}
catch (Exception ignored)
{
}
}
if (_outputStream != null)
{
try
{
_outputStream.close();
_outputStream = null;
}
catch (Exception ignored)
{
}
}
if (_socket != null)
{
try
{
_socket.close();
_socket = null;
_inputStream = null;
_outputStream = null;
}
catch (Exception ignored)
{

View File

@ -70,14 +70,36 @@ public class NetClient
*/
public void disconnect()
{
if (_inputStream != null)
{
try
{
_inputStream.close();
_inputStream = null;
}
catch (Exception ignored)
{
}
}
if (_outputStream != null)
{
try
{
_outputStream.close();
_outputStream = null;
}
catch (Exception ignored)
{
}
}
if (_socket != null)
{
try
{
_socket.close();
_socket = null;
_inputStream = null;
_outputStream = null;
}
catch (Exception ignored)
{

View File

@ -70,14 +70,36 @@ public class NetClient
*/
public void disconnect()
{
if (_inputStream != null)
{
try
{
_inputStream.close();
_inputStream = null;
}
catch (Exception ignored)
{
}
}
if (_outputStream != null)
{
try
{
_outputStream.close();
_outputStream = null;
}
catch (Exception ignored)
{
}
}
if (_socket != null)
{
try
{
_socket.close();
_socket = null;
_inputStream = null;
_outputStream = null;
}
catch (Exception ignored)
{

View File

@ -70,14 +70,36 @@ public class NetClient
*/
public void disconnect()
{
if (_inputStream != null)
{
try
{
_inputStream.close();
_inputStream = null;
}
catch (Exception ignored)
{
}
}
if (_outputStream != null)
{
try
{
_outputStream.close();
_outputStream = null;
}
catch (Exception ignored)
{
}
}
if (_socket != null)
{
try
{
_socket.close();
_socket = null;
_inputStream = null;
_outputStream = null;
}
catch (Exception ignored)
{

View File

@ -70,14 +70,36 @@ public class NetClient
*/
public void disconnect()
{
if (_inputStream != null)
{
try
{
_inputStream.close();
_inputStream = null;
}
catch (Exception ignored)
{
}
}
if (_outputStream != null)
{
try
{
_outputStream.close();
_outputStream = null;
}
catch (Exception ignored)
{
}
}
if (_socket != null)
{
try
{
_socket.close();
_socket = null;
_inputStream = null;
_outputStream = null;
}
catch (Exception ignored)
{

View File

@ -70,14 +70,36 @@ public class NetClient
*/
public void disconnect()
{
if (_inputStream != null)
{
try
{
_inputStream.close();
_inputStream = null;
}
catch (Exception ignored)
{
}
}
if (_outputStream != null)
{
try
{
_outputStream.close();
_outputStream = null;
}
catch (Exception ignored)
{
}
}
if (_socket != null)
{
try
{
_socket.close();
_socket = null;
_inputStream = null;
_outputStream = null;
}
catch (Exception ignored)
{

View File

@ -70,14 +70,36 @@ public class NetClient
*/
public void disconnect()
{
if (_inputStream != null)
{
try
{
_inputStream.close();
_inputStream = null;
}
catch (Exception ignored)
{
}
}
if (_outputStream != null)
{
try
{
_outputStream.close();
_outputStream = null;
}
catch (Exception ignored)
{
}
}
if (_socket != null)
{
try
{
_socket.close();
_socket = null;
_inputStream = null;
_outputStream = null;
}
catch (Exception ignored)
{

View File

@ -70,14 +70,36 @@ public class NetClient
*/
public void disconnect()
{
if (_inputStream != null)
{
try
{
_inputStream.close();
_inputStream = null;
}
catch (Exception ignored)
{
}
}
if (_outputStream != null)
{
try
{
_outputStream.close();
_outputStream = null;
}
catch (Exception ignored)
{
}
}
if (_socket != null)
{
try
{
_socket.close();
_socket = null;
_inputStream = null;
_outputStream = null;
}
catch (Exception ignored)
{

View File

@ -70,14 +70,36 @@ public class NetClient
*/
public void disconnect()
{
if (_inputStream != null)
{
try
{
_inputStream.close();
_inputStream = null;
}
catch (Exception ignored)
{
}
}
if (_outputStream != null)
{
try
{
_outputStream.close();
_outputStream = null;
}
catch (Exception ignored)
{
}
}
if (_socket != null)
{
try
{
_socket.close();
_socket = null;
_inputStream = null;
_outputStream = null;
}
catch (Exception ignored)
{

View File

@ -70,14 +70,36 @@ public class NetClient
*/
public void disconnect()
{
if (_inputStream != null)
{
try
{
_inputStream.close();
_inputStream = null;
}
catch (Exception ignored)
{
}
}
if (_outputStream != null)
{
try
{
_outputStream.close();
_outputStream = null;
}
catch (Exception ignored)
{
}
}
if (_socket != null)
{
try
{
_socket.close();
_socket = null;
_inputStream = null;
_outputStream = null;
}
catch (Exception ignored)
{

View File

@ -70,14 +70,36 @@ public class NetClient
*/
public void disconnect()
{
if (_inputStream != null)
{
try
{
_inputStream.close();
_inputStream = null;
}
catch (Exception ignored)
{
}
}
if (_outputStream != null)
{
try
{
_outputStream.close();
_outputStream = null;
}
catch (Exception ignored)
{
}
}
if (_socket != null)
{
try
{
_socket.close();
_socket = null;
_inputStream = null;
_outputStream = null;
}
catch (Exception ignored)
{

View File

@ -70,14 +70,36 @@ public class NetClient
*/
public void disconnect()
{
if (_inputStream != null)
{
try
{
_inputStream.close();
_inputStream = null;
}
catch (Exception ignored)
{
}
}
if (_outputStream != null)
{
try
{
_outputStream.close();
_outputStream = null;
}
catch (Exception ignored)
{
}
}
if (_socket != null)
{
try
{
_socket.close();
_socket = null;
_inputStream = null;
_outputStream = null;
}
catch (Exception ignored)
{

View File

@ -70,14 +70,36 @@ public class NetClient
*/
public void disconnect()
{
if (_inputStream != null)
{
try
{
_inputStream.close();
_inputStream = null;
}
catch (Exception ignored)
{
}
}
if (_outputStream != null)
{
try
{
_outputStream.close();
_outputStream = null;
}
catch (Exception ignored)
{
}
}
if (_socket != null)
{
try
{
_socket.close();
_socket = null;
_inputStream = null;
_outputStream = null;
}
catch (Exception ignored)
{

View File

@ -70,14 +70,36 @@ public class NetClient
*/
public void disconnect()
{
if (_inputStream != null)
{
try
{
_inputStream.close();
_inputStream = null;
}
catch (Exception ignored)
{
}
}
if (_outputStream != null)
{
try
{
_outputStream.close();
_outputStream = null;
}
catch (Exception ignored)
{
}
}
if (_socket != null)
{
try
{
_socket.close();
_socket = null;
_inputStream = null;
_outputStream = null;
}
catch (Exception ignored)
{

View File

@ -70,14 +70,36 @@ public class NetClient
*/
public void disconnect()
{
if (_inputStream != null)
{
try
{
_inputStream.close();
_inputStream = null;
}
catch (Exception ignored)
{
}
}
if (_outputStream != null)
{
try
{
_outputStream.close();
_outputStream = null;
}
catch (Exception ignored)
{
}
}
if (_socket != null)
{
try
{
_socket.close();
_socket = null;
_inputStream = null;
_outputStream = null;
}
catch (Exception ignored)
{

View File

@ -70,14 +70,36 @@ public class NetClient
*/
public void disconnect()
{
if (_inputStream != null)
{
try
{
_inputStream.close();
_inputStream = null;
}
catch (Exception ignored)
{
}
}
if (_outputStream != null)
{
try
{
_outputStream.close();
_outputStream = null;
}
catch (Exception ignored)
{
}
}
if (_socket != null)
{
try
{
_socket.close();
_socket = null;
_inputStream = null;
_outputStream = null;
}
catch (Exception ignored)
{

View File

@ -70,14 +70,36 @@ public class NetClient
*/
public void disconnect()
{
if (_inputStream != null)
{
try
{
_inputStream.close();
_inputStream = null;
}
catch (Exception ignored)
{
}
}
if (_outputStream != null)
{
try
{
_outputStream.close();
_outputStream = null;
}
catch (Exception ignored)
{
}
}
if (_socket != null)
{
try
{
_socket.close();
_socket = null;
_inputStream = null;
_outputStream = null;
}
catch (Exception ignored)
{

View File

@ -70,14 +70,36 @@ public class NetClient
*/
public void disconnect()
{
if (_inputStream != null)
{
try
{
_inputStream.close();
_inputStream = null;
}
catch (Exception ignored)
{
}
}
if (_outputStream != null)
{
try
{
_outputStream.close();
_outputStream = null;
}
catch (Exception ignored)
{
}
}
if (_socket != null)
{
try
{
_socket.close();
_socket = null;
_inputStream = null;
_outputStream = null;
}
catch (Exception ignored)
{

View File

@ -70,14 +70,36 @@ public class NetClient
*/
public void disconnect()
{
if (_inputStream != null)
{
try
{
_inputStream.close();
_inputStream = null;
}
catch (Exception ignored)
{
}
}
if (_outputStream != null)
{
try
{
_outputStream.close();
_outputStream = null;
}
catch (Exception ignored)
{
}
}
if (_socket != null)
{
try
{
_socket.close();
_socket = null;
_inputStream = null;
_outputStream = null;
}
catch (Exception ignored)
{

View File

@ -70,14 +70,36 @@ public class NetClient
*/
public void disconnect()
{
if (_inputStream != null)
{
try
{
_inputStream.close();
_inputStream = null;
}
catch (Exception ignored)
{
}
}
if (_outputStream != null)
{
try
{
_outputStream.close();
_outputStream = null;
}
catch (Exception ignored)
{
}
}
if (_socket != null)
{
try
{
_socket.close();
_socket = null;
_inputStream = null;
_outputStream = null;
}
catch (Exception ignored)
{

View File

@ -70,14 +70,36 @@ public class NetClient
*/
public void disconnect()
{
if (_inputStream != null)
{
try
{
_inputStream.close();
_inputStream = null;
}
catch (Exception ignored)
{
}
}
if (_outputStream != null)
{
try
{
_outputStream.close();
_outputStream = null;
}
catch (Exception ignored)
{
}
}
if (_socket != null)
{
try
{
_socket.close();
_socket = null;
_inputStream = null;
_outputStream = null;
}
catch (Exception ignored)
{

View File

@ -70,14 +70,36 @@ public class NetClient
*/
public void disconnect()
{
if (_inputStream != null)
{
try
{
_inputStream.close();
_inputStream = null;
}
catch (Exception ignored)
{
}
}
if (_outputStream != null)
{
try
{
_outputStream.close();
_outputStream = null;
}
catch (Exception ignored)
{
}
}
if (_socket != null)
{
try
{
_socket.close();
_socket = null;
_inputStream = null;
_outputStream = null;
}
catch (Exception ignored)
{

View File

@ -70,14 +70,36 @@ public class NetClient
*/
public void disconnect()
{
if (_inputStream != null)
{
try
{
_inputStream.close();
_inputStream = null;
}
catch (Exception ignored)
{
}
}
if (_outputStream != null)
{
try
{
_outputStream.close();
_outputStream = null;
}
catch (Exception ignored)
{
}
}
if (_socket != null)
{
try
{
_socket.close();
_socket = null;
_inputStream = null;
_outputStream = null;
}
catch (Exception ignored)
{

View File

@ -70,14 +70,36 @@ public class NetClient
*/
public void disconnect()
{
if (_inputStream != null)
{
try
{
_inputStream.close();
_inputStream = null;
}
catch (Exception ignored)
{
}
}
if (_outputStream != null)
{
try
{
_outputStream.close();
_outputStream = null;
}
catch (Exception ignored)
{
}
}
if (_socket != null)
{
try
{
_socket.close();
_socket = null;
_inputStream = null;
_outputStream = null;
}
catch (Exception ignored)
{

View File

@ -70,14 +70,36 @@ public class NetClient
*/
public void disconnect()
{
if (_inputStream != null)
{
try
{
_inputStream.close();
_inputStream = null;
}
catch (Exception ignored)
{
}
}
if (_outputStream != null)
{
try
{
_outputStream.close();
_outputStream = null;
}
catch (Exception ignored)
{
}
}
if (_socket != null)
{
try
{
_socket.close();
_socket = null;
_inputStream = null;
_outputStream = null;
}
catch (Exception ignored)
{

View File

@ -70,14 +70,36 @@ public class NetClient
*/
public void disconnect()
{
if (_inputStream != null)
{
try
{
_inputStream.close();
_inputStream = null;
}
catch (Exception ignored)
{
}
}
if (_outputStream != null)
{
try
{
_outputStream.close();
_outputStream = null;
}
catch (Exception ignored)
{
}
}
if (_socket != null)
{
try
{
_socket.close();
_socket = null;
_inputStream = null;
_outputStream = null;
}
catch (Exception ignored)
{

View File

@ -70,14 +70,36 @@ public class NetClient
*/
public void disconnect()
{
if (_inputStream != null)
{
try
{
_inputStream.close();
_inputStream = null;
}
catch (Exception ignored)
{
}
}
if (_outputStream != null)
{
try
{
_outputStream.close();
_outputStream = null;
}
catch (Exception ignored)
{
}
}
if (_socket != null)
{
try
{
_socket.close();
_socket = null;
_inputStream = null;
_outputStream = null;
}
catch (Exception ignored)
{

View File

@ -70,14 +70,36 @@ public class NetClient
*/
public void disconnect()
{
if (_inputStream != null)
{
try
{
_inputStream.close();
_inputStream = null;
}
catch (Exception ignored)
{
}
}
if (_outputStream != null)
{
try
{
_outputStream.close();
_outputStream = null;
}
catch (Exception ignored)
{
}
}
if (_socket != null)
{
try
{
_socket.close();
_socket = null;
_inputStream = null;
_outputStream = null;
}
catch (Exception ignored)
{