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

Commit 64decc60 authored by Kristian Monsen's avatar Kristian Monsen
Browse files

Close idle connections on pause timers

Part of fix for bug 4487538 Current Drain

Change-Id: Ie957321d11ee3a94a5549aebb5be6e3cb444ebcf
parent 5a0a47a0
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -537,6 +537,8 @@ public final class WebViewCore {

    private native void nativeSendListBoxChoice(int choice);

    private native void nativeCloseIdleConnections();

    /*  Tell webkit what its width and height are, for the purposes
        of layout/line-breaking. These coordinates are in document space,
        which is the same as View coords unless we have zoomed the document
@@ -1252,6 +1254,8 @@ public final class WebViewCore {
                            if (!JniUtil.useChromiumHttpStack()) {
                                WebViewWorker.getHandler().sendEmptyMessage(
                                        WebViewWorker.MSG_PAUSE_CACHE_TRANSACTION);
                            } else {
                                nativeCloseIdleConnections();
                            }
                            break;