diff --git a/src/zm_stream.cpp b/src/zm_stream.cpp index f50671338..c66638759 100644 --- a/src/zm_stream.cpp +++ b/src/zm_stream.cpp @@ -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); } } }