Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 12750701 authored by Hung-ying Tyan's avatar Hung-ying Tyan
Browse files

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
parent 4a267a91
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -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);