You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merge pull request #1487 from petermm/fix-network-races
Fix network.erl race conditions
As evidenced by failing simtest CI on release-0.6 etc.
1. startup should use continue/handle_continue and avoid races + cleaner DRY
code.
2. network:stop was using nonblocking call to stop network_port- so rapid
stop/start would give the last network:start an old whereis(network_port) that
was still shutting down, and lead to errors.
3. somewhat unrelated: sta_rssi was using get_port(), and would crash on no
network started - guarded it erlang side, added test.
These changes are made under both the "Apache 2.0" and the "GNU Lesser General
Public License 2.1 or later" license terms (dual license).
SPDX-License-Identifier: Apache-2.0 OR LGPL-2.1-or-later
0 commit comments