Skip to content

Commit

Permalink
Don't wait for CASE connection if resolve fails in chip-device-ctrl (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
emontnemery authored and pull[bot] committed Jul 19, 2021
1 parent 09d0bc1 commit 4118110
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/controller/python/chip/ChipDeviceCtrl.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,14 @@ def HandleKeyExchangeComplete(err):
def HandleAddressUpdateComplete(nodeid, err):
if err != 0:
print("Failed to update node address: {}".format(err))
# Failed update address, don't wait for HandleCommissioningComplete
self.state = DCState.IDLEHandleCommissioningComplete
self._ChipStack.callbackRes = err
self._ChipStack.completeEvent.set()
else:
print("Node address has been updated")
# Wait for HandleCommissioningComplete before setting
# self._ChipStack.callbackRes; we're not done until that happens.
# Wait for HandleCommissioningComplete before setting
# self._ChipStack.callbackRes; we're not done until that happens.

def HandleCommissioningComplete(nodeid, err):
if err != 0:
Expand Down

0 comments on commit 4118110

Please sign in to comment.