Skip to content

Commit de453e8

Browse files
authored
[lldb-dap] Fix type req->arguments == "disconnect" (#149446)
This typo was introduced in PR #140331. This branch will never get executed. We also set the `disconnecting = true` in the `DAP::Disconnect()` so I am not sure if we need it in both places.
1 parent 03fe1a4 commit de453e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lldb/tools/lldb-dap/DAP.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -983,7 +983,7 @@ llvm::Error DAP::Loop() {
983983

984984
if (const protocol::Request *req =
985985
std::get_if<protocol::Request>(&*next);
986-
req && req->arguments == "disconnect")
986+
req && req->command == "disconnect")
987987
disconnecting = true;
988988

989989
const std::optional<CancelArguments> cancel_args =

0 commit comments

Comments
 (0)