Commit 1a3bfec1 authored by Ian Craggs's avatar Ian Craggs

Fix an intermittent persistence problem on Linux

parent b6ff870f
......@@ -528,7 +528,7 @@ int clearUnix(char *dirname)
lstat(dir_entry->d_name, &stat_info);
if(S_ISREG(stat_info.st_mode))
{
if ( remove(dir_entry->d_name) != 0 )
if (remove(dir_entry->d_name) != 0 && errno != ENOENT)
rc = MQTTCLIENT_PERSISTENCE_ERROR;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment