diff options
author | Hung-ying Tyan <tyanh@google.com> | 2011-06-23 18:23:09 +0800 |
---|---|---|
committer | Hung-ying Tyan <tyanh@google.com> | 2011-06-23 18:23:09 +0800 |
commit | 12750701d0f90ed0166f5ddcf588c1235efe830a (patch) | |
tree | 0fc43fe8805f54ad0dda88023414a416b4a260ad /voip | |
parent | 4a267a9158a62010cd76ab93681586ea8e3d6015 (diff) | |
download | frameworks_base-12750701d0f90ed0166f5ddcf588c1235efe830a.zip frameworks_base-12750701d0f90ed0166f5ddcf588c1235efe830a.tar.gz frameworks_base-12750701d0f90ed0166f5ddcf588c1235efe830a.tar.bz2 |
Keep the keepalive process going after NAT port is changed.
This is a regression from the CL that makes the keep-alive process a reusable
component.
Change-Id: I1d580588e9e303c532bf620056fc0fe88a2fdcda
Diffstat (limited to 'voip')
-rw-r--r-- | voip/java/com/android/server/sip/SipService.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/voip/java/com/android/server/sip/SipService.java b/voip/java/com/android/server/sip/SipService.java index 802e56d..f8e5b3a 100644 --- a/voip/java/com/android/server/sip/SipService.java +++ b/voip/java/com/android/server/sip/SipService.java @@ -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); |