Bug 481188 - Prevent log rotation from corrupting the commandNest value.

r=gijs
ChatZilla only.


git-svn-id: svn://10.0.0.236/trunk@256482 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
silver%warwickcompsoc.co.uk
2009-03-08 13:42:43 +00:00
parent 983f7b7350
commit 740a230d3a

View File

@@ -200,7 +200,12 @@ function ceip_logevent(data)
newFile.createUnique(NORMAL_FILE_TYPE, 0600);
oldFile.moveTo(null, newFile.leafName);
/* startLog() will reset the nest, but we might be in the middle of a
* command execution right now and would rather not let that happen.
*/
var commandNest = this.commandNest;
this.startLog();
this.commandNest = commandNest;
}
catch (ex)
{