good morning!!!!

Skip to content
Snippets Groups Projects
Commit cb3424ef authored by Garet Halliday's avatar Garet Halliday
Browse files

a

parent 4887ec14
No related branches found
No related tags found
No related merge requests found
...@@ -58,7 +58,7 @@ func (T *ReadWriteCloser) Write(b []byte) (n int, err error) { ...@@ -58,7 +58,7 @@ func (T *ReadWriteCloser) Write(b []byte) (n int, err error) {
return 0, net.ErrClosed return 0, net.ErrClosed
} }
if time.Now().After(T.writeDeadline) { if T.writeDeadline != (time.Time{}) && time.Now().After(T.writeDeadline) {
return 0, context.DeadlineExceeded return 0, context.DeadlineExceeded
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment