Skip to content

Commit af47436

Browse files
kusmourJDevlieghere
authored andcommitted
[lldb-dap] Fix type req->arguments == "disconnect" (llvm#149446)
This typo was introduced in PR llvm#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. (cherry picked from commit de453e8)
1 parent e4156c5 commit af47436

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)