hybridgroup / rubyserial

FFI Ruby library for RS-232 serial port communication
https://rubygems.org/gems/rubyserial
Other
154 stars 27 forks source link

Console state is not always updated in case of error during initialization #51

Open MarcOnFire opened 1 year ago

MarcOnFire commented 1 year ago

Adding this else to the if block in lib/rubyserial/windows.rb:17 fixed for me:

else
  @open = false

It would be a good idea to check if there are other cases like this.

Thanks!