summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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));