summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-console/io_modem.cpp
Side-by-side diff
Diffstat (limited to 'noncore/apps/opie-console/io_modem.cpp') (more/less context) (show whitespace changes)
-rw-r--r--noncore/apps/opie-console/io_modem.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/noncore/apps/opie-console/io_modem.cpp b/noncore/apps/opie-console/io_modem.cpp
index 22a3673..41f553b 100644
--- a/noncore/apps/opie-console/io_modem.cpp
+++ b/noncore/apps/opie-console/io_modem.cpp
@@ -33,3 +33,7 @@ bool IOModem::open() {
}
- else return false;
+ else
+ {
+ close();
+ return false;
+ }
}