mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2025-04-07 14:27:50 +02:00

The destructor was trying to do more than the scope of a destructor by trying to handle this single case of hostapd being restarted. Instead we can simply pass a keyword argument 'reinit' to the constructor to tell it to reinitialize everything. And as for killing hostapd this can be done in ungraceful_restart itself rather than trying to handle it in the destructor.