add readycallback to reconnect

This commit is contained in:
Simon Tokumine
2011-12-06 16:39:21 +00:00
parent 74cd176eb5
commit 6d05c83631
+2
View File
@@ -58,6 +58,8 @@ function VarnishClient(host, port, ready_callback) {
} catch(err) {
self.close();
connect();
ready=true;
ready_callback();
client.write(cmd + '\n');
}
}