bluetoothcommsprofiles/btpan/panagt/panagtremdev.cpp
branchRCL_3
changeset 21 14e240312f6f
parent 0 29b1cd4cb562
--- a/bluetoothcommsprofiles/btpan/panagt/panagtremdev.cpp	Wed Jun 09 10:55:02 2010 +0300
+++ b/bluetoothcommsprofiles/btpan/panagt/panagtremdev.cpp	Thu Jul 15 19:55:36 2010 +0300
@@ -1,4 +1,4 @@
-// Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
+// Copyright (c) 2004-2010 Nokia Corporation and/or its subsidiary(-ies).
 // All rights reserved.
 // This component and the accompanying materials are made available
 // under the terms of "Eclipse Public License v1.0"
@@ -93,7 +93,7 @@
 	{
 	iRemSockAddr.SetBTAddr(aRemDevAddr);
 	iRemSockAddr.SetPort(KBnepPsm);
-	iSockServ.Connect();
+	User::LeaveIfError(iSockServ.Connect());
 	
 #ifdef __FLOG_ACTIVE
 	TBuf<KMaxBtAddrSize> tempDevAddrBuf;
@@ -138,7 +138,7 @@
 
 	// make a note of the remote device address
 	iSocket.RemoteName(iRemSockAddr);
-	iSockServ.Connect();
+	User::LeaveIfError(iSockServ.Connect());
 
 #ifdef __FLOG_ACTIVE
 	TBuf<KMaxBtAddrSize> tempDevAddrBuf;