Skip to content

Commit 6230348

Browse files
committed
Parse timeout, but not port, as Int
1 parent 5450ec4 commit 6230348

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adapter/src/main/kotlin/org/javacs/ktda/adapter/KotlinDebugAdapter.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ class KotlinDebugAdapter(
191191
val hostName = (args["hostName"] as? String)
192192
?: throw missingRequestArgument("attach", "hostName")
193193

194-
val port = (args["port"] as? Double)?.toInt()
194+
val port = (args["port"] as? Int)
195195
?: throw missingRequestArgument("attach", "port")
196196

197197
val timeout = (args["timeout"] as? Double)?.toInt()

0 commit comments

Comments
 (0)