Skip to content

Commit

Permalink
Changed snitch saving to be synchronous
Browse files Browse the repository at this point in the history
  • Loading branch information
MrLittleKitty committed Dec 3, 2016
1 parent ca197b5 commit 9bbda52
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ public static void asyncSaveSnitches(Iterable<Snitch> snitches)
for(Snitch snitch : snitches)
csvs.add(Snitch.ConvertSnitchToCSV(snitch));

new Thread(new AsyncSaveToCSV(csvs,modSnitchesFile)).start();
//new Thread(new AsyncSaveToCSV(csvs,modSnitchesFile)).start();
new AsyncSaveToCSV(csvs,modSnitchesFile).run();
}

public static void asyncSaveSnitchLists(Iterable<SnitchList> snitchLists)
Expand All @@ -55,7 +56,8 @@ public static void asyncSaveSnitchLists(Iterable<SnitchList> snitchLists)
for(SnitchList list : snitchLists)
csvs.add(SnitchList.ConvertSnitchListToCSV(list));

new Thread(new AsyncSaveToCSV(csvs,modSnitchListsFile)).start();
//new Thread(new AsyncSaveToCSV(csvs,modSnitchListsFile)).start();
new AsyncSaveToCSV(csvs,modSnitchListsFile).run();
}

public static void loadSnitches(SnitchMaster snitchMaster) throws IOException
Expand Down

0 comments on commit 9bbda52

Please sign in to comment.