Commit b0e39f9 Eric Ernst
authored
File tree 1 file changed +4
-5
lines changed
1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,6 @@ import (
11
11
"errors"
12
12
"flag"
13
13
"fmt"
14
- "io"
15
14
"io/ioutil"
16
15
"net"
17
16
"os"
@@ -632,7 +631,7 @@ func (s *sandbox) startGRPC() {
632
631
defer s .wg .Done ()
633
632
634
633
var err error
635
- for err == nil || err == io . EOF {
634
+ for {
636
635
agentLog .Info ("agent grpc server starts" )
637
636
638
637
err = s .channel .setup ()
@@ -660,9 +659,9 @@ func (s *sandbox) startGRPC() {
660
659
agentLog .WithError (err ).Warn ("agent grpc server quits" )
661
660
}
662
661
663
- errT : = s .channel .teardown ()
664
- if errT != nil {
665
- agentLog .WithError (errT ).Warn ("agent grpc channel teardown failed" )
662
+ err = s .channel .teardown ()
663
+ if err != nil {
664
+ agentLog .WithError (err ).Warn ("agent grpc channel teardown failed" )
666
665
}
667
666
}
668
667
}()
You can’t perform that action at this time.
0 commit comments