mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-10-23 23:08:23 -04:00
delete lock when we are done with it
This commit is contained in:
1 parent
be36301779
commit
0fc68e2e91
1 file changed
+1
-1
+1
-1
@@ -344,8 +344,8 @@ void StreamBase::closeComms()
|
||||
}
|
||||
if (lock_fd > 0)
|
||||
{
|
||||
loc_sock_path[0] = '\0';
|
||||
close(lock_fd); //close it rather than unlock it incase it got deleted.
|
||||
unlink(sock_path_lock);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user