DarthAffe / OBD.NET

C#-Library to read data from car through an ELM327-/STN1170-Adapter
GNU General Public License v2.0
178 stars 82 forks source link

Fixed deadlock when calling dispose when Initialize is not completed #25

Open terziman opened 2 years ago

terziman commented 2 years ago

This fix is designed to solve the deadlock observed when dispose is called but Initialize method has not yet completed. It happens in async apps if the OBD device is not plugged for example.

DarthAffe commented 2 years ago

Hey, thanks for contributing. This issue should be one of the cases handled in #24. For some reason I thought it was already merged but it seems like I forgot to actually do it.