scstadmin: Revert r7310 because it was reported not to fix the issue it should have fixed

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7319 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2018-01-04 02:40:13 +00:00
parent a51cd22614
commit 31ff7ecab8

View File

@@ -4751,8 +4751,7 @@ sub closeDevice {
my ($attributes, $errorString) = $SCST->deviceAttributes($device);
if (!$force) {
if (keys %{$$attributes{'exported'}} &&
$$attributes{'exported'}->{'value'}) {
if (keys %{$$attributes{'exported'}}) {
listExported($device, $attributes);
immediateExit("Device '$device' still in use, aborting. ".
"Use -force to override.");