<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -9,11 +9,9 @@ var ajax = function(url, callbackFunction) {
 
        this.stateChange = function (object) {
                if (this.request.readyState==4) {
-                   if (req.status == 200) {
+                   // if (req.status == 200) {
                        this.callbackFunction(this.request);
-                   } else {
-                       clearInterval(interval);
-                   }
+                   // }
                }
        };
 </diff>
      <filename>public/ajax.js</filename>
    </modified>
    <modified>
      <diff>@@ -8,13 +8,14 @@ var diligence = (function() {
 
   function tick() {  
     new ajax('/tick', function(request){
-      var json = request.responseText;
-      if (json != '') {
-        response = JSON.parse(json);
+      if (request.status == 200) {
+        response = JSON.parse(request.responseText);
         if (response.reload) {
           clearInterval(interval);
           document.location.reload();
         }
+      } else {
+        clearInterval(interval);
       }
     });
   };</diff>
      <filename>public/runner.js</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>f31b9a04066cc3ec3330a7ba234e0ba8b30fbd30</id>
    </parent>
  </parents>
  <author>
    <name>Jim Benton</name>
    <email>jim@autonomousmachine.com</email>
  </author>
  <url>http://github.com/jim/diligence/commit/8a5ccf162c15f5d96813f300194bbdffa0bd5c19</url>
  <id>8a5ccf162c15f5d96813f300194bbdffa0bd5c19</id>
  <committed-date>2009-06-17T15:18:23-07:00</committed-date>
  <authored-date>2009-06-17T15:18:23-07:00</authored-date>
  <message>Pass the actual response through to the ajax callback. Stops pinging the server if a request returns anything other than 200</message>
  <tree>7f6546ad67d4cd92406e8f6264c63e9ca43d0b22</tree>
  <committer>
    <name>Jim Benton</name>
    <email>jim@autonomousmachine.com</email>
  </committer>
</commit>
