bugst / go-serial

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

Fix some rare MacOSX USB port enumerator failures #165

Closed cmaglie closed 1 year ago

cmaglie commented 1 year 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.