bugst / go-serial

A cross-platform serial library for go-lang.
BSD 3-Clause "New" or "Revised" License
617 stars 188 forks source link

Fix some rare MacOSX USB port enumerator failures #165

Closed cmaglie closed 9 months ago

cmaglie commented 9 months ago

We had reports of users always getting:

IOServiceGetMatchingServices failed, data changed while iterating

The issue seems related to the function getMatchingServices which returns an always-invalid iterator even if there are no actual services.

This is a workaround for this issue.