summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/opie-console/io_modem.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/noncore/apps/opie-console/io_modem.cpp b/noncore/apps/opie-console/io_modem.cpp
index 2f0c04e..e1f9ff1 100644
--- a/noncore/apps/opie-console/io_modem.cpp
+++ b/noncore/apps/opie-console/io_modem.cpp
@@ -16,23 +16,25 @@ IOModem::~IOModem() {
void IOModem::close() {
// Hangup, discarding result
Dialer d(m_profile, rawIO());
d.setHangupOnly();
d.exec();
+ closeRawIO();
IOSerial::close();
}
bool IOModem::open() {
bool ret = IOSerial::open();
if(!ret) return false;
Dialer d(m_profile, rawIO());
int result = d.exec();
+ closeRawIO();
if(result == QDialog::Accepted)
{
return true;
}
else
{