git 2 years ago
parent
commit
1added986e

+ 2 - 1
Home/Lib/Action/InotifyMonitor.php

@@ -217,9 +217,10 @@ class InotifyMonitor {
                     if(rename($data,$data.'.redis'))
                     {
                         $data=$data.'.redis';
+                        $this->redis->lpush($this->key,$data);
                     }
                     
-                    $this->redis->lpush($this->key,$data);
+                  
                 }
                
 

+ 3 - 0
Home/Lib/Action/ListeningFileCreateAction.class.php

@@ -137,6 +137,7 @@ class ListeningFileCreateAction extends Action {
 		}catch(Exception $e)
 		{
 			    DahuaUtil::rlog('redis连接异常',$e->getMessage());
+				return;
 		}
 						
 				$i=0;
@@ -314,6 +315,7 @@ class ListeningFileCreateAction extends Action {
 			}catch (Exception $e){
 				
 				DahuaUtil::rlog("redis连接异常".$e->getMessage());
+				return;
 				
 			 }
 					
@@ -336,6 +338,7 @@ class ListeningFileCreateAction extends Action {
 							      }catch(Exception $e)
 							     {	
 								     DahuaUtil::rlog("redis连接异常".$e->getMessage());
+									  return;
 								//重新连接redis
 								   }