VERSION: 1.65
DESCRIPTION:

If a peripheral is attached to a computer using a cable + modems and then broken, the computer still sees a ghost peripheral attached.
  • No peripheral_detach event fires
  • The peripheral will is still listed in getNames
  • A reference to the IPeripheral instance is kept
  • Calling methods on the peripheral will cause either "Java exception thrown" error or weird behavior
This does not happen with peripherals attached directly to a computer.

EXPECTED RESULT:
  • peripheral_detach should fire when the peripheral is broken
  • Any references to IPeripheral instance should be removed (allowing GC to collect it)
Further calls to peripheral methods should result in errors

REPRODUCTION STEPS:

1) Attach computer to peripheral using a cable and 2 modems
2) Activate modems
3) Access peripheral from the computer
4) Break peripheral

SCREENSHOT/VIDEO: