Skip to content

Commit

Permalink
Merge pull request #1571 from IIFE/filename-deadlock
Browse files Browse the repository at this point in the history
fix deadlock on filename() call. Thanks @IIFE
  • Loading branch information
gabime authored May 26, 2020
2 parents 0317731 + 95485ee commit ac19803
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/spdlog/sinks/daily_file_sink.h
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ class daily_file_sink final : public base_sink<Mutex>
using details::os::filename_to_str;
using details::os::remove_if_exists;

filename_t current_file = filename();
filename_t current_file = file_helper_.filename();
if (filenames_q_.full())
{
auto old_filename = std::move(filenames_q_.front());
Expand Down

0 comments on commit ac19803

Please sign in to comment.