summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohns <johns98@gmx.net>2012-03-02 00:38:52 +0100
committerJohns <johns98@gmx.net>2012-03-02 00:38:52 +0100
commit995f1286bd1d85a8eae90195df1b4572ccfa7293 (patch)
tree56cf17cd3412aee638c410cd733b655d4bf59521
parentfd0ae12f24521aa43db84be802c0364846386b0c (diff)
downloadvdr-plugin-softhddevice-995f1286bd1d85a8eae90195df1b4572ccfa7293.tar.gz
vdr-plugin-softhddevice-995f1286bd1d85a8eae90195df1b4572ccfa7293.tar.bz2
Fix attach.
-rw-r--r--softhddevice.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/softhddevice.cpp b/softhddevice.cpp
index c16d2c7..1e36cc8 100644
--- a/softhddevice.cpp
+++ b/softhddevice.cpp
@@ -1711,10 +1711,7 @@ cString cPluginSoftHdDevice::SVDRPCommand(const char *command,
return "SoftHdDevice is detached";
}
if (!strcasecmp(command, "ATTA")) {
- if (SuspendMode) {
- if (SuspendMode != SUSPEND_DETACHED) {
- return "SoftHdDevice already detached";
- }
+ if (SuspendMode != SUSPEND_DETACHED) {
return "can't attach SoftHdDevice not detached";
}
if (ShutdownHandler.GetUserInactiveTime()) {