DiskWriter Failsafe
This commit is contained in:
parent
963e31408a
commit
9af03cb465
|
@ -56,7 +56,9 @@ public class DiskWriter {
|
||||||
int counter = 0;
|
int counter = 0;
|
||||||
|
|
||||||
boolean saved = false;
|
boolean saved = false;
|
||||||
while (!saved) {
|
int failSafe = 0;
|
||||||
|
while (!saved && failSafe++ <= 42069)
|
||||||
|
{
|
||||||
try {
|
try {
|
||||||
writer = new PrintWriter(new BufferedWriter(new FileWriter(
|
writer = new PrintWriter(new BufferedWriter(new FileWriter(
|
||||||
filename, true)));
|
filename, true)));
|
||||||
|
@ -93,7 +95,9 @@ public class DiskWriter {
|
||||||
int counter = 0;
|
int counter = 0;
|
||||||
|
|
||||||
boolean saved = false;
|
boolean saved = false;
|
||||||
while (!saved) {
|
int failSafe = 0;
|
||||||
|
while (!saved && failSafe++ <= 42069)
|
||||||
|
{
|
||||||
try {
|
try {
|
||||||
writer = new PrintWriter(new BufferedWriter(new FileWriter(
|
writer = new PrintWriter(new BufferedWriter(new FileWriter(
|
||||||
filename, true)));
|
filename, true)));
|
||||||
|
@ -135,7 +139,9 @@ public class DiskWriter {
|
||||||
int counter = 0;
|
int counter = 0;
|
||||||
|
|
||||||
boolean saved = false;
|
boolean saved = false;
|
||||||
while (!saved) {
|
int failSafe = 0;
|
||||||
|
while (!saved && failSafe++ <= 42069)
|
||||||
|
{
|
||||||
try {
|
try {
|
||||||
writer = new PrintWriter(new BufferedWriter(new FileWriter(
|
writer = new PrintWriter(new BufferedWriter(new FileWriter(
|
||||||
filename, true)));
|
filename, true)));
|
||||||
|
@ -176,7 +182,9 @@ public class DiskWriter {
|
||||||
int counter = 0;
|
int counter = 0;
|
||||||
|
|
||||||
boolean saved = false;
|
boolean saved = false;
|
||||||
while (!saved) {
|
int failSafe = 0;
|
||||||
|
while (!saved && failSafe++ <= 42069)
|
||||||
|
{
|
||||||
try {
|
try {
|
||||||
writer = new PrintWriter(new BufferedWriter(new FileWriter(
|
writer = new PrintWriter(new BufferedWriter(new FileWriter(
|
||||||
filename, true)));
|
filename, true)));
|
||||||
|
|
Loading…
Reference in New Issue
Block a user