changeset 176 | 52c100897e9d |
parent 167 | 7ce61108ed86 |
175:fc8702a8572e | 176:52c100897e9d |
---|---|
62 var sock net.Conn |
62 var sock net.Conn |
63 p := make([]byte, 1024) |
63 p := make([]byte, 1024) |
64 for { |
64 for { |
65 select { |
65 select { |
66 case stat := <-status: |
66 case stat := <-status: |
67 if stat.fatal() { |
67 if stat.Fatal() { |
68 return |
68 return |
69 } |
69 } |
70 |
70 |
71 case sock = <-socks: |
71 case sock = <-socks: |
72 default: |
72 default: |