]> www.vanbest.org Git - motioneye-debian/commitdiff
netcam keepalive fix
authorCalin Crisan <ccrisan@gmail.com>
Thu, 20 Aug 2015 06:45:02 +0000 (09:45 +0300)
committerCalin Crisan <ccrisan@gmail.com>
Thu, 20 Aug 2015 06:45:02 +0000 (09:45 +0300)
src/config.py

index 235d763e920782ff98d9cd274e1243dfa6df0acf..23029355a9f5d17813e509f0ea3d240aba873b58 100644 (file)
@@ -507,7 +507,7 @@ def add_camera(device_details):
         if device_details['username']:
             camera_config['netcam_userpass'] = device_details['username'] + ':' + device_details['password']
         
-        camera_config['netcam_keepalive'] = device_details.get('keep_alive')
+        camera_config['netcam_keepalive'] = device_details.get('keep_alive', False)
         camera_config['netcam_tolerant_check'] = True
 
         if device_details.get('camera_index') == 'udp':