From 56995e239f943131f5915da1de2fc94ea0f745d4 Mon Sep 17 00:00:00 2001 From: Aleksandar Sasha Babic Date: Wed, 1 Jul 2009 14:19:47 +0200 Subject: In loop have to close/reopen connection after each RConnection::Attac(...) call. --- examples/network/ftp/sym_iap_util.h | 7 +++++-- 1 file 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)); -- cgit v0.12