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
EXPECTED RESULT:
- peripheral_detach should fire when the peripheral is broken
- Any references to IPeripheral instance should be removed (allowing GC to collect it)
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:
Edited by bdew, 13 October 2014 - 11:12 AM.











