Re-download of new cached copy should start in yet another thread.
This commit is contained in:
		
							parent
							
								
									9a8852ce87
								
							
						
					
					
						commit
						77666626ef
					
				
							
								
								
									
										
											BIN
										
									
								
								sigIRCv2.jar
									
									
									
									
									
								
							
							
						
						
									
										
											BIN
										
									
								
								sigIRCv2.jar
									
									
									
									
									
								
							
										
											Binary file not shown.
										
									
								
							| @ -332,7 +332,6 @@ public class sigIRC{ | ||||
| 			Thread downloadThread = new Thread(){ | ||||
| 				public void run() { | ||||
| 					JSONObject subemotes = null; | ||||
| 					JSONObject subemotes2 = null; | ||||
| 					try { | ||||
| 						File filer = new File(SUBEMOTELISTFILE); | ||||
| 						if (!filer.exists()) { | ||||
| @ -345,7 +344,17 @@ public class sigIRC{ | ||||
| 							} else { | ||||
| 								System.out.println("Local copy of Sub emote JSON out-of-date! Re-downloading in background..."); | ||||
| 								subemotes = FileUtils.readJsonFromFile(SUBEMOTELISTFILE); | ||||
| 								subemotes2 = FileUtils.readJsonFromUrl("https://twitchemotes.com/api_cache/v3/subscriber.json",SUBEMOTELISTFILE,true); | ||||
| 								new Thread(){ | ||||
| 									public void run() { | ||||
| 										try { | ||||
| 											FileUtils.readJsonFromUrl("https://twitchemotes.com/api_cache/v3/subscriber.json",SUBEMOTELISTFILE,true); | ||||
| 										} catch (JSONException e) { | ||||
| 											e.printStackTrace(); | ||||
| 										} catch (IOException e) { | ||||
| 											e.printStackTrace(); | ||||
| 										} | ||||
| 									} | ||||
| 								}.start(); | ||||
| 							} | ||||
| 						} | ||||
| 					} catch (JSONException | IOException e) { | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user