Displaying differences for changeset
 
display as  

src/java/m/wepp/V2_0.java

@@ -25,6 +25,7 @@
 import java.util.HashMap;
 import java.util.List;
 import java.util.Map;
+import java.util.concurrent.TimeUnit;
 import java.util.zip.ZipEntry;
 import java.util.zip.ZipOutputStream;
 import javax.ws.rs.Path;
@@ -426,6 +427,7 @@
     } else if (weatherCount <= 10) {
       LOG.info("Climate fail: " + weatherCount);
       weatherCount++;
+      TimeUnit.SECONDS.sleep(10);
       getClimateFile(weatherCount);
     } else {
       throw new ServiceException("Climate service error: " + r.getError() + " attempt " + weatherCount);