mirror of
https://github.com/jetty/jetty.project.git
synced 2025-03-04 12:59:30 +00:00
Fixed #1513 sync shared timer
This commit is contained in:
parent
d2ee6bdf08
commit
108fd25086
@ -212,7 +212,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…
x
Reference in New Issue
Block a user