Posted 01 March 2016 - 10:49 PM
Description:
I couldn't find this bug listed anywhere, so here goes nothing.
Every time a networked peripheral is removed by mining the peripheral itself, it never diconnects and still returns true when peripheral.isPresent is called.
Also, no peripheral_detach event is being fired.
Expected Result:
The peripheral should be disconnected from the network and fire a peripheral_detach event.
Also, peripheral.isPresent should return false. Maybe remove the device from the network device list too, if that is possible. (Maybe reassign the peripheral id to new devices?)
Reproduction Steps:
Build a small network (eg. a single Computer and Disk Drive connected with modems and cable, both modems turned on) and detach the Disk Drive by breaking it without touching the modem (still turned on). Both Disk Drive and Modem break and the peripheral is still in the network.
Additional Info:
I could reproduce the bug in both creative and survival, but both times with cheated devices.
Additionally, i reproduced it on my server too.
I couldn't find this bug listed anywhere, so here goes nothing.
Every time a networked peripheral is removed by mining the peripheral itself, it never diconnects and still returns true when peripheral.isPresent is called.
Also, no peripheral_detach event is being fired.
Expected Result:
The peripheral should be disconnected from the network and fire a peripheral_detach event.
Also, peripheral.isPresent should return false. Maybe remove the device from the network device list too, if that is possible. (Maybe reassign the peripheral id to new devices?)
Reproduction Steps:
Build a small network (eg. a single Computer and Disk Drive connected with modems and cable, both modems turned on) and detach the Disk Drive by breaking it without touching the modem (still turned on). Both Disk Drive and Modem break and the peripheral is still in the network.
Additional Info:
I could reproduce the bug in both creative and survival, but both times with cheated devices.
Additionally, i reproduced it on my server too.