add readycallback to reconnect
This commit is contained in:
@@ -58,6 +58,8 @@ function VarnishClient(host, port, ready_callback) {
|
||||
} catch(err) {
|
||||
self.close();
|
||||
connect();
|
||||
ready=true;
|
||||
ready_callback();
|
||||
client.write(cmd + '\n');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user