Rework workspace/client/tcpclient disconnection

This commit is contained in:
Joel Wetzell
2020-06-16 08:13:22 -05:00
parent 64e1cc787f
commit 549d1d7d08
7 changed files with 71 additions and 44 deletions
+7 -4
View File
@@ -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();
}
}