Bug TW-1288

- TW-1288 Added missing locking for task modifications (thanks to Kosta H,
          Ralph Bean, Adam Coddington).
This commit is contained in:
Paul Beckingham 2014-03-11 23:28:57 -04:00
parent 4ae8431f96
commit d52eebaa66
2 changed files with 5 additions and 0 deletions

View file

@ -233,6 +233,9 @@ void TF2::commit ()
{
if (_file.open ())
{
if (context.config.getBoolean ("locking"))
_file.waitForLock ();
// Truncate the file and rewrite.
_file.truncate ();