From 3640c608102cbac159dbd1e95e32cd1ce02e6095 Mon Sep 17 00:00:00 2001 From: jsmorley Date: Thu, 27 May 2010 21:46:13 +0000 Subject: [PATCH] Changed the default value of UpdateRate for the Ping Plugin to be 32 (32 seconds if Update is the default 1000) so that when used with the default Timeout= value for the plugin, which is 30000ms (30 seconds), a skin which is still waiting for "Timeout" to occur on a bad / inactive DestAdress does not cause Rainmeter to craah by again running the plugin before it has a chance to time out. This is not a perfect solution, but will at least protect those who just use all defaults with Ping Plugin from having constant mysterious crashes if they ping an address that does not respond. --- Plugins/PluginPing/Ping.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Plugins/PluginPing/Ping.cpp b/Plugins/PluginPing/Ping.cpp index 3a4949e2..c87dfd9e 100644 --- a/Plugins/PluginPing/Ping.cpp +++ b/Plugins/PluginPing/Ping.cpp @@ -168,7 +168,7 @@ UINT Initialize(HMODULE instance, LPCTSTR iniFile, LPCTSTR section, UINT id) valid = true; } - data = ReadConfigString(section, L"UpdateRate", L"1"); + data = ReadConfigString(section, L"UpdateRate", L"32"); if (data) { pData->updateRate = _wtoi(data);