diff options
Diffstat (limited to 'softhddevice.cpp')
-rw-r--r-- | softhddevice.cpp | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/softhddevice.cpp b/softhddevice.cpp index a9c19a8..a707516 100644 --- a/softhddevice.cpp +++ b/softhddevice.cpp @@ -1537,10 +1537,18 @@ bool cPluginSoftHdDevice::Start(void) } } - if (!::Start()) { - cControl::Launch(new cSoftHdControl); - cControl::Attach(); - SuspendMode = SUSPEND_NORMAL; + switch (::Start()) { + case 1: + cControl::Launch(new cSoftHdControl); + cControl::Attach(); + SuspendMode = SUSPEND_NORMAL; + break; + case -1: + SuspendMode = SUSPEND_DETACHED; + break; + case 0: + default: + break; } return true; |