protected void stopMessageLoopIfNoInstances(){
synchronized (webViewUILock) {
    if (instances.get() <= 0) {
      WindowsWebViewJNI.releaseMessageLoop(webViewMessageLoop);
      webViewMessageLoop=0;
      webViewUI=null;
    }
  }
}

protected void stopMessageLoopIfNoInstances ( ) { synchronized ( webViewUILock ) { if ( instances . get ( ) <= 0 ) { WindowsWebViewJNI . releaseMessageLoop ( webViewMessageLoop ) ; webViewMessageLoop = 0 ; webViewUI = null ; } } }
terminate the message loop thread if there are no active ( non - disposed ) webview instances . has no effect if there are active instances .
