mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2025-03-04 23:50:40 +01:00

There was a race condition here where the GLib timeout could have fired but the test function returned successfully prior to the end of the while loop. This would end up causing source_remove to print a warning that the source did not exist. Instead check if the timeout fired prior to removing it.