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 Jun 29, 2022
1 parent a0a5c10 commit b9068aa
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 b9068aa

Please sign in to comment.