delete lock when we are done with it

This commit is contained in:
Isaac Connor committed 2015-12-04 16:38:24 -05:00
1 parent be36301779
commit 0fc68e2e91
1 file changed
+1 -1
+1 -1
View File
@@ -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);
}
}
}