Permalink
Browse files

Retry on 503

  • Loading branch information...
1 parent 359e96e commit afdfa649126837ca2f160ae1bd23fd8a28144271 @dyoo dyoo committed Apr 11, 2013
Showing with 3 additions and 1 deletion.
  1. +3 −1 servlet-htdocs/rpc.html
View
@@ -34,7 +34,9 @@
var xhr = new XMLHttpRequest();
xhr.onreadystatechange = function() {
if (xhr.readyState == 4) {
- if (xhr.status === 200) {
+ if (xhr.status === 503) {
+ that.compileProgram(programName, code, onDone, onDoneError);
+ } else if (xhr.status === 200) {
onDone(xhr.responseText);
} else {
onDoneError(xhr.responseText);

0 comments on commit afdfa64

Please sign in to comment.