server: properly delete output-stream files
logic inversion
This commit is contained in:
@ -108,7 +108,7 @@ struct OutputStream {
|
|||||||
* longer needed.
|
* longer needed.
|
||||||
*/
|
*/
|
||||||
void unlink () {
|
void unlink () {
|
||||||
if (!fname_.empty())
|
if (fname_.empty())
|
||||||
return;
|
return;
|
||||||
if (auto&&res{::unlink(fname_.c_str())}; res != 0)
|
if (auto&&res{::unlink(fname_.c_str())}; res != 0)
|
||||||
mu_warning("failed to unlink '{}'", ::strerror(res));
|
mu_warning("failed to unlink '{}'", ::strerror(res));
|
||||||
|
|||||||
Reference in New Issue
Block a user