Skip to content

Commit

Permalink
fd-commands: ConnectToFileDaemon - reset job status to running
Browse files Browse the repository at this point in the history
- after an unsuccessful TLS without cleartext handshake the jobstatus
  will be reset to "running"
  • Loading branch information
root authored and franku committed Sep 19, 2018
1 parent 630ac99 commit b15f053
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/dird/fd_cmds.cc
Original file line number Diff line number Diff line change
Expand Up @@ -198,9 +198,9 @@ bool ConnectToFileDaemon(JobControlRecord *jcr, int retry_interval, int max_retr
if (jcr->file_bsock) {
jcr->file_bsock->close();
delete jcr->file_bsock;
jcr->file_bsock = NULL;
jcr->file_bsock = nullptr;
}
jcr->resetJobStatus(JS_Created);
jcr->resetJobStatus(JS_Running);
jcr->connection_handshake_try_ = JobControlRecord::ConnectionHandshakeMode::kCleartextFirst;
break;
case JobControlRecord::ConnectionHandshakeMode::kCleartextFirst:
Expand Down

0 comments on commit b15f053

Please sign in to comment.