mirror of https://github.com/djcb/mu.git
server: properly delete output-stream files
logic inversion
This commit is contained in:
parent
24add72126
commit
1df4452ff3
|
@ -108,7 +108,7 @@ struct OutputStream {
|
|||
* longer needed.
|
||||
*/
|
||||
void unlink () {
|
||||
if (!fname_.empty())
|
||||
if (fname_.empty())
|
||||
return;
|
||||
if (auto&&res{::unlink(fname_.c_str())}; res != 0)
|
||||
mu_warning("failed to unlink '{}'", ::strerror(res));
|
||||
|
|
Loading…
Reference in New Issue