pc_serial: skip waiting for pending DPC in free hook

Since it's possible to fail queuing them, the count doesn't go down to 0,
and the process just hangs forever on exit. It might not be necessary anyway.
This commit is contained in:
François Revol 2014-08-29 01:29:35 +02:00
parent aa05d85ca6
commit efbc894614
1 changed files with 2 additions and 2 deletions

View File

@ -702,8 +702,8 @@ SerialDevice::Free()
// wait until currently executing DPC is done. In case another one // wait until currently executing DPC is done. In case another one
// is run beyond this point it will just bail out on !IsOpen(). // is run beyond this point it will just bail out on !IsOpen().
while (atomic_get(&fPendingDPC)) //while (atomic_get(&fPendingDPC))
snooze(1000); // snooze(1000);
gTTYModule->tty_destroy_cookie(fSystemTTYCookie); gTTYModule->tty_destroy_cookie(fSystemTTYCookie);
gTTYModule->tty_destroy_cookie(fDeviceTTYCookie); gTTYModule->tty_destroy_cookie(fDeviceTTYCookie);