Merge "Keep the keepalive process going after NAT port is changed."

This commit is contained in:
Hung-ying Tyan
2011-06-23 04:29:45 -07:00
committed by Android (Google) Code Review

View File

@@ -890,6 +890,12 @@ public final class SipService extends ISipService.Stub {
startPortMappingLifetimeMeasurement(mSession.getLocalProfile());
if (!mRunning || !portChanged) return;
// The keep alive process is stopped when port is changed;
// Nullify the session so that the process can be restarted
// again when the re-registration is done
mKeepAliveSession = null;
// Acquire wake lock for the registration process. The
// lock will be released when registration is complete.
mMyWakeLock.acquire(mSession);