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.
This commit is contained in:
Thomas Zimmermann 2014-02-14 08:03:15 +01:00
parent df970eb457
commit 7faa5dbbe7

View File

@ -377,7 +377,8 @@ 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());
}
}