Bug TW-1288
- TW-1288 Added missing locking for task modifications (thanks to Kosta H,
Ralph Bean, Adam Coddington).
This commit is contained in:
@@ -233,6 +233,9 @@ void TF2::commit ()
|
||||
{
|
||||
if (_file.open ())
|
||||
{
|
||||
if (context.config.getBoolean ("locking"))
|
||||
_file.waitForLock ();
|
||||
|
||||
// Truncate the file and rewrite.
|
||||
_file.truncate ();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user