mirror of
https://github.com/jwetzell/QControlKit.git
synced 2026-08-14 03:43:49 +00:00
Rework workspace/client/tcpclient disconnection
This commit is contained in:
+7
-4
@@ -71,14 +71,17 @@ namespace QSharp
|
||||
}
|
||||
#endregion
|
||||
|
||||
public void Close()
|
||||
public void disconnect()
|
||||
{
|
||||
foreach (var workspace in workspaces)
|
||||
{
|
||||
if(workspace.connected)
|
||||
workspace.Close();
|
||||
if (workspace.connected)
|
||||
{
|
||||
Log.Debug($"[server] Close Called For workspace: {workspace.name}");
|
||||
workspace.disconnect();
|
||||
}
|
||||
}
|
||||
client.Close();
|
||||
client.disconnect();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user