Bug 972265: Use connect delay in RIL IPC code, r=vyang
authorThomas Zimmermann <tdz@users.sourceforge.net>
Fri, 14 Feb 2014 08:03:15 +0100
changeset 169306 1d1bbffa3b9f52811e20e4a815bb27de9d0a4d78
parent 169305 47d5e2be3d175895c0ac48c7f38cbecd4a5426d4
child 169307 7736936437bac0588b11d95820d5def3fe0a396d
push id270
push userpvanderbeken@mozilla.com
push dateThu, 06 Mar 2014 09:24:21 +0000
reviewersvyang
bugs972265
milestone30.0a1
Bug 972265: Use connect delay in RIL IPC code, r=vyang When trying to re-connect a socket, the RIL IPC code now respects the delay that is suggested by the UnixSocketConsumer.
ipc/ril/Ril.cpp
--- a/ipc/ril/Ril.cpp
+++ b/ipc/ril/Ril.cpp
@@ -372,14 +372,15 @@ RilConsumer::OnConnectError()
     CloseSocket();
 }
 
 void
 RilConsumer::OnDisconnect()
 {
     CHROMIUM_LOG("RIL[%lu]: %s\n", mClientId, __FUNCTION__);
     if (!mShutdown) {
-        ConnectSocket(new RilConnector(mClientId), mAddress.get(), 1000);
+        ConnectSocket(new RilConnector(mClientId), mAddress.get(),
+                      GetSuggestedConnectDelayMs());
     }
 }
 
 } // namespace ipc
 } // namespace mozilla