summaryrefslogtreecommitdiffstats
path: root/examples/network
diff options
context:
space:
mode:
authorAleksandar Sasha Babic <aleksandar.babic@nokia.com>2009-07-01 12:19:47 (GMT)
committerAleksandar Sasha Babic <aleksandar.babic@nokia.com>2009-07-01 16:11:28 (GMT)
commit56995e239f943131f5915da1de2fc94ea0f745d4 (patch)
tree913f46b97474803ea75d7ce72195b7f3d7418891 /examples/network
parent7735c4774fe53cf67f20cdfa35f140066163bfac (diff)
downloadQt-56995e239f943131f5915da1de2fc94ea0f745d4.zip
Qt-56995e239f943131f5915da1de2fc94ea0f745d4.tar.gz
Qt-56995e239f943131f5915da1de2fc94ea0f745d4.tar.bz2
In loop have to close/reopen connection
after each RConnection::Attac(...) call.
Diffstat (limited to 'examples/network')
-rw-r--r--examples/network/ftp/sym_iap_util.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/examples/network/ftp/sym_iap_util.h b/examples/network/ftp/sym_iap_util.h
index 046a7b5..b3656fa 100644
--- a/examples/network/ftp/sym_iap_util.h
+++ b/examples/network/ftp/sym_iap_util.h
@@ -98,6 +98,9 @@ static void qt_SetDefaultIapL()
activeLanConnectionFound = ETrue;
break;
}
+ // close & reopen from previous attach
+ conn.Close();
+ User::LeaveIfError(conn.Open(serv));
}
}
}
@@ -106,10 +109,10 @@ static void qt_SetDefaultIapL()
if (!activeLanConnectionFound) {
/*
- * no active connections yet
+ * no active LAN connections yet
* offer IAP dialog to user
*/
- conn.Close();
+ conn.Close(); // might be opened after attach
User::LeaveIfError(conn.Open(serv));
User::LeaveIfError(conn.Start());
User::LeaveIfError(conn.GetDesSetting(TPtrC(KIapNameSetting), iapName));