Properly remove hdd device on device unload.
This commit is contained in:
@@ -371,6 +371,7 @@ public final class ComputerTileEntity extends AbstractTileEntity implements ITic
|
||||
}
|
||||
|
||||
if (hdd != null) {
|
||||
virtualMachine.board.removeDevice(hdd);
|
||||
try {
|
||||
hdd.close();
|
||||
} catch (final IOException e) {
|
||||
|
||||
Reference in New Issue
Block a user