Add debug messages for disconnecting

This commit is contained in:
2020-10-19 15:56:25 -05:00
parent 53ef7835a0
commit 672f2bfdf4
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -52,6 +52,7 @@ namespace QControlKit
public void disconnect()
{
Log.Debug($"[client] disconnecting from {tcpClient.Address}");
tcpClient.Close();
}
+1
View File
@@ -169,6 +169,7 @@ namespace SharpOSC
{
if (client.Connected)
{
Log.Debug($"[tcpClient] closing connection to {Address}");
client.GetStream().Close();
client.Close();
}