btobexprofiles/obexsendservices/obexservicesendutils/src/BTServiceStarter.cpp
changeset 45 b0aebde9b1fb
parent 42 b72428996822
child 57 5ebadcda06cb
--- a/btobexprofiles/obexsendservices/obexservicesendutils/src/BTServiceStarter.cpp	Mon Jul 12 19:13:27 2010 +0300
+++ b/btobexprofiles/obexsendservices/obexservicesendutils/src/BTServiceStarter.cpp	Mon Jul 12 19:25:26 2010 +0300
@@ -743,7 +743,7 @@
     {
     FLOG(_L("[BTSU]\t CBTServiceStarter::ServiceAttributeSearchComplete()"));               
     TInt err = KErrNone;
-    if (aErr==KErrEof && aAttr.Count()>0 )
+    if ((aErr==KErrEof || aErr==KErrNone) && aAttr.Count()>0 )
         {            
         RSdpResultArray results=aAttr;    
         iBTEngDiscovery->ParseRfcommChannel(results,iClientChannel);          
@@ -812,6 +812,10 @@
         iState = EBTSStarterFindingBIP;  
         iTriedOPP = ETrue;
         }
+    else if (aErr==KErrNone && aAttr.Count()==0)
+        {
+        // This isn't KErrEof so we aren't done yet, wait for further matches
+        }
     else
         {
         // Set destroyer AO active (destroys CBTEngDiscovery/CBTEngSdpQuery classes). This is done