Skip to content

Commit

Permalink
Restore return statement that went missing. (#20087)
Browse files Browse the repository at this point in the history
The changes in #19870
incorrectly removed a return here.  Now we'll fall through to the cases that
assume the proxy is not in a connected state to start with, which is not
desirable.
  • Loading branch information
bzbarsky-apple authored and pull[bot] committed Jan 17, 2024
1 parent 1dfa2cf commit 2281872
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/controller/CHIPDeviceController.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,7 @@ CHIP_ERROR DeviceController::DisconnectDevice(NodeId nodeId)
if (proxy->IsConnected())
{
proxy->Disconnect();
return CHIP_NO_ERROR;
}

if (proxy->IsConnecting())
Expand Down

0 comments on commit 2281872

Please sign in to comment.