[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.
This commit is contained in:
parent
03fe1a493d
commit
de453e8697
@ -983,7 +983,7 @@ llvm::Error DAP::Loop() {
|
|||||||
|
|
||||||
if (const protocol::Request *req =
|
if (const protocol::Request *req =
|
||||||
std::get_if<protocol::Request>(&*next);
|
std::get_if<protocol::Request>(&*next);
|
||||||
req && req->arguments == "disconnect")
|
req && req->command == "disconnect")
|
||||||
disconnecting = true;
|
disconnecting = true;
|
||||||
|
|
||||||
const std::optional<CancelArguments> cancel_args =
|
const std::optional<CancelArguments> cancel_args =
|
||||||
|
Loading…
x
Reference in New Issue
Block a user