Skip to content

Commit a901281

Browse files
committed
fix: use the new ssh disconnect callback
Toolbox provides two callbacks, one before an SSH connection is established and another one which executes when the ssh connection is stopped. The latter was deprecated in the favor of a new callback that also provides hints on whether the user requested the disconnect.
1 parent 2558180 commit a901281

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/kotlin/com/coder/toolbox/CoderRemoteEnvironment.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ class CoderRemoteEnvironment(
203203

204204
private fun File.doesNotExists(): Boolean = !this.exists()
205205

206-
override fun afterDisconnect() {
206+
override fun afterDisconnect(isManual: Boolean) {
207207
context.logger.info("Stopping the network metrics poll job for $id")
208208
pollJob?.cancel()
209209
this.connectionRequest.update { false }

0 commit comments

Comments
 (0)