Selaa lähdekoodia

Z991239-5382 #comment fix the bug: did not open ad page on stand2s after cleanning caches.

chenliangyu 1 vuosi sitten
vanhempi
sitoutus
9d4d476269

+ 1 - 1
Module/mod_chromium/CModTools.cpp

@@ -366,7 +366,7 @@ namespace Chromium {
         if (reason._to_integral() == ERR_PAGE_REASON::ErrNotify)
             notifyExist = false;
         if (stopAll)
-            breakdownExist = notifyExist = false;
+            breakdownExist = notifyExist = m_isAdOpen = false;
 
 #else
 		if (stopAll)

+ 1 - 0
Module/mod_chromium/CModTools.h

@@ -119,6 +119,7 @@ namespace Chromium {
 
 		bool findRestartCode(DWORD userCode);//if true, restart the terminal
 		DWORD spiltErrMsg(std::string errMsg);//split the errmsg to usercode
+	public:
 		bool notifyExist, breakdownExist, m_isAdOpen;	//if notify exist, do not start other err page
 	private:
 		CSimpleString m_strSite, m_strMachineType;

+ 7 - 1
Module/mod_chromium/mod_chromium.cpp

@@ -876,7 +876,13 @@ namespace Chromium {
 		CacheCleanThread.timed_join(boost::posix_time::microseconds(10000));
 
 		CModTools::get_mutable_instance().unlockGuard();
-		if (m_runAd) openAdPage();
+		if (m_runAd)
+		{
+			CModTools::get_mutable_instance().m_isAdOpen = false;
+			DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM).setAPI(__FUNCTION__)("OnBrowserCacheClean open add page");
+			openAdPage();
+		}
+			
 #else
 		//uos 由于无guard,需要重启整个chromium实体
 		CModTools::get_mutable_instance().killAllChromium();