You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/main/kotlin/com/coder/toolbox/CoderRemoteEnvironment.kt
+13-9
Original file line number
Diff line number
Diff line change
@@ -111,15 +111,7 @@ class CoderRemoteEnvironment(
111
111
} else {
112
112
actions.add(Action(context.i18n.ptrl("Stop")) {
113
113
context.cs.launch {
114
-
if (isConnected.value) {
115
-
connectionRequest.update {
116
-
false
117
-
}
118
-
119
-
if (isConnected.waitForFalseWithTimeout(10.seconds) ==null) {
120
-
context.logger.warn("The SSH connection to workspace $name could not be dropped in time, going to stop the workspace while the SSH connection is live")
@@ -130,6 +122,18 @@ class CoderRemoteEnvironment(
130
122
return actions
131
123
}
132
124
125
+
privatesuspendfuntryStopSshConnection() {
126
+
if (isConnected.value) {
127
+
connectionRequest.update {
128
+
false
129
+
}
130
+
131
+
if (isConnected.waitForFalseWithTimeout(10.seconds) ==null) {
132
+
context.logger.warn("The SSH connection to workspace $name could not be dropped in time, going to stop the workspace while the SSH connection is live")
0 commit comments