do not prepend an S to the history

pull/53/head
Zlatin Balevsky 2020-10-24 12:29:50 +01:00
parent 58a8364901
commit e1b2582ca6
No known key found for this signature in database
GPG Key ID: A72832072D525E41
1 changed files with 5 additions and 1 deletions

View File

@ -87,10 +87,14 @@ class H2HostCache extends HostCache {
int fs = 0
int fr = 0
int ff = 0
ConnectionAttemptStatus currentStatus = ConnectionAttemptStatus.SUCCESSFUL
ConnectionAttemptStatus currentStatus = null
sql.eachRow("select STATUS from HOST_ATTEMPTS where DESTINATION=${d.toBase64()} ORDER BY TSTAMP") {
def recordedStatus = ConnectionAttemptStatus.valueOf(it.STATUS)
if (currentStatus == null) {
currentStatus = recordedStatus
return
}
switch(currentStatus) {
case ConnectionAttemptStatus.SUCCESSFUL:
switch(recordedStatus) {