DiskWriter Failsafe

This commit is contained in:
Konloch 2021-07-06 23:04:09 -07:00
parent 963e31408a
commit 9af03cb465

AI 샘플 코드 생성 중입니다

Loading...

View File

@ -56,7 +56,9 @@ public class DiskWriter {
int counter = 0;
boolean saved = false;
while (!saved) {
int failSafe = 0;
while (!saved && failSafe++ <= 42069)
{
try {
writer = new PrintWriter(new BufferedWriter(new FileWriter(
filename, true)));
@ -93,7 +95,9 @@ public class DiskWriter {
int counter = 0;
boolean saved = false;
while (!saved) {
int failSafe = 0;
while (!saved && failSafe++ <= 42069)
{
try {
writer = new PrintWriter(new BufferedWriter(new FileWriter(
filename, true)));
@ -135,7 +139,9 @@ public class DiskWriter {
int counter = 0;
boolean saved = false;
while (!saved) {
int failSafe = 0;
while (!saved && failSafe++ <= 42069)
{
try {
writer = new PrintWriter(new BufferedWriter(new FileWriter(
filename, true)));
@ -176,7 +182,9 @@ public class DiskWriter {
int counter = 0;
boolean saved = false;
while (!saved) {
int failSafe = 0;
while (!saved && failSafe++ <= 42069)
{
try {
writer = new PrintWriter(new BufferedWriter(new FileWriter(
filename, true)));