gooftool: Fix race condition of cannot probe modem version
To probe modem version, we need to stop modemmanager.
Previously we wait for 2 seccodns after `stop modemmanager`.
Sometimes the wait time is not enough and the modem version couldn't be
probed. The CL waits 1 second * 10 iterations at most and stops waiting
immediately once modemmanager stops.
Reviewed-by: Bowgo Tsai <email@example.com>
Tested-by: Bowgo Tsai <firstname.lastname@example.org>
Commit-Queue: Bowgo Tsai <email@example.com>
1 file changed