Skip to content
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.

Commit

Permalink
fix small issue with check before dereference of pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
sargun committed Jun 6, 2018
1 parent e8b66d6 commit 0d963c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion executor/runner/runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -311,11 +311,11 @@ func (r *Runner) monitorContainer(ctx context.Context, startTime time.Time, stat
for {
select {
case statusMessage, ok := <-statusChan:
msg := statusMessage.Msg
if !ok {
updateChan <- update{status: titusdriver.Lost, msg: "Lost connection to runtime driver", details: details}
return
}
msg := statusMessage.Msg
r.logger.WithField("statusMessage", statusMessage).Info("Processing msg")

switch statusMessage.Status {
Expand Down

0 comments on commit 0d963c9

Please sign in to comment.