|
@@ -72,6 +72,16 @@ unsigned int __stdcall ThreadWathTVPort(PVOID pM)
|
|
buffer = (char*)szBuffer;
|
|
buffer = (char*)szBuffer;
|
|
__time64_t gmt = time(NULL);
|
|
__time64_t gmt = time(NULL);
|
|
|
|
|
|
|
|
+ for ( std::vector<std::string>::iterator it = vtNotifyReboot.begin(); it != vtNotifyReboot.end(); it++ )
|
|
|
|
+ {
|
|
|
|
+ if ( _tcsstr(buffer.c_str(), it->c_str()) )
|
|
|
|
+ {
|
|
|
|
+ nType = 1;
|
|
|
|
+ bAbnormal = true;
|
|
|
|
+ break;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
if ( !bAbnormal )
|
|
if ( !bAbnormal )
|
|
{
|
|
{
|
|
for ( std::vector<std::string>::iterator it = vtNotifyShutdown.begin(); it != vtNotifyShutdown.end(); it++ )
|
|
for ( std::vector<std::string>::iterator it = vtNotifyShutdown.begin(); it != vtNotifyShutdown.end(); it++ )
|
|
@@ -85,16 +95,6 @@ unsigned int __stdcall ThreadWathTVPort(PVOID pM)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- for ( std::vector<std::string>::iterator it = vtNotifyReboot.begin(); it != vtNotifyReboot.end(); it++ )
|
|
|
|
- {
|
|
|
|
- if ( _tcsstr(buffer.c_str(), it->c_str()) )
|
|
|
|
- {
|
|
|
|
- nType = 1;
|
|
|
|
- bAbnormal = true;
|
|
|
|
- break;
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
|
|
|
|
if ( Global::g_notify.notify )
|
|
if ( Global::g_notify.notify )
|
|
{
|
|
{
|