Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
powermand: fix assertion failure on teardown
Problem: an assertion failure is seen when powermand tears down with a tcp-connected device: powermand: device_tcp.c:266: tcp_disconnect: Assertion `dev->magic == DEV_MAGIC' failed. This is because dev_destroy sets dev->magic = 0 before it calls dev->disconnect. When dev->disconnect points to tcp_disconnect() the assertion triggers. Fixes #106
- Loading branch information