Fixed #1513 sync shared timer
This commit is contained in:
parent
15cad7379d
commit
6f0cb033e7
|
@ -223,7 +223,10 @@ public class RolloverFileOutputStream extends FilterOutputStream
|
|||
{
|
||||
_rollTask = new RollTask();
|
||||
midnight = nextMidnight(midnight);
|
||||
__rollover.schedule(_rollTask,midnight.toInstant().toEpochMilli() - now.toInstant().toEpochMilli());
|
||||
synchronized(RolloverFileOutputStream.class)
|
||||
{
|
||||
__rollover.schedule(_rollTask,midnight.toInstant().toEpochMilli() - now.toInstant().toEpochMilli());
|
||||
}
|
||||
}
|
||||
|
||||
/* ------------------------------------------------------------ */
|
||||
|
|
Loading…
Reference in New Issue