Commit 3b82f295 authored by Stephen Ma's avatar Stephen Ma

net: fix network timeout boundary condition.

Fixes #472.

R=golang-dev
CC=golang-dev
https://golang.org/cl/223108
parent b73e592e
......@@ -228,7 +228,7 @@ func (s *pollServer) Run() {
var t = s.deadline
if t > 0 {
t = t - s.Now()
if t < 0 {
if t <= 0 {
s.CheckDeadlines()
continue
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment