Windows: Reset new test Nodes (#1364)

* Reset new test Nodes

* Finalize before reinitializing

* Minor issues with reinitialization

* Fix settings wipe
This commit is contained in:
Nick Banks
2017-02-22 09:58:02 -08:00
committed by Jonathan Hui
parent fb49b6a222
commit 8d01979dcf
6 changed files with 131 additions and 17 deletions
@@ -843,6 +843,9 @@ OTNODEAPI otNode* OTCALL otNodeInit(uint32_t id)
InitializeCriticalSection(&node->mCS);
// Reset any previously saved settings
otFactoryReset(instance);
otSetStateChangedCallback(instance, otNodeStateChangedCallback, node);
HandleAddressChanges(node);