Bug 972265: Use connect delay in NFC IPC code, r=allstars.chh
authorThomas Zimmermann <tdz@users.sourceforge.net>
Fri, 14 Feb 2014 08:03:27 +0100
changeset 169307 7736936437bac0588b11d95820d5def3fe0a396d
parent 169306 1d1bbffa3b9f52811e20e4a815bb27de9d0a4d78
child 169308 0d6ba24004e612ed324f5fbb62205c4c36299a8e
push id270
push userpvanderbeken@mozilla.com
push dateThu, 06 Mar 2014 09:24:21 +0000
reviewersallstars
bugs972265
milestone30.0a1
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.
ipc/nfc/Nfc.cpp
--- a/ipc/nfc/Nfc.cpp
+++ b/ipc/nfc/Nfc.cpp
@@ -339,14 +339,15 @@ NfcConsumer::OnConnectError()
     CloseSocket();
 }
 
 void
 NfcConsumer::OnDisconnect()
 {
     CHROMIUM_LOG("NFC: %s\n", __FUNCTION__);
     if (!mShutdown) {
-        ConnectSocket(new NfcConnector(), mAddress.get(), 1000);
+        ConnectSocket(new NfcConnector(), mAddress.get(),
+                      GetSuggestedConnectDelayMs());
     }
 }
 
 } // namespace ipc
 } // namespace mozilla