Fix assertion in reaper thread

This commit is contained in:
BtbN 2013-01-15 23:53:55 +01:00
parent c1312e160a
commit d5858b0b50

View file

@ -149,7 +149,12 @@ void timeshift_filemgr_close ( timeshift_file_t *tsf )
{
ssize_t r = timeshift_write_eof(tsf->fd);
if (r > 0)
{
tsf->size += r;
pthread_mutex_lock(&timeshift_size_lock);
timeshift_total_size += r;
pthread_mutex_unlock(&timeshift_size_lock);
}
close(tsf->fd);
tsf->fd = -1;
}