Connections now timeout correctly if something goes wrong with the server.

This commit is contained in:
Clinton Alexander 2016-06-06 10:10:25 +01:00 committed by Andras Slemmer
parent 90a24588bc
commit 9fc89fc4a2

View File

@ -200,6 +200,7 @@ private fun setup(params: NodeParams) {
}
private fun runDateChange(date: String, host: String) : Boolean {
println("Changing date to " + date)
val url = URL(host + "/api/irs/demodate")
if(putJson(url, "\"" + date + "\"")) {
println("Date changed")