Bug 972265: Use connect delay in NFC IPC code, r=allstars.chh

When trying to re-connect a socket, the NFC IPC code now respects
the delay that is suggested by the UnixSocketConsumer.
This commit is contained in:
Thomas Zimmermann 2014-02-14 08:03:27 +01:00
parent 7faa5dbbe7
commit 21d22e285e

View File

@ -344,7 +344,8 @@ NfcConsumer::OnDisconnect()
{
CHROMIUM_LOG("NFC: %s\n", __FUNCTION__);
if (!mShutdown) {
ConnectSocket(new NfcConnector(), mAddress.get(), 1000);
ConnectSocket(new NfcConnector(), mAddress.get(),
GetSuggestedConnectDelayMs());
}
}