- Timestamp:
- Jun 29, 2020, 8:24:41 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/conn.go
r323 r341 4 4 "context" 5 5 "fmt" 6 "io" 6 7 "net" 7 8 "sync" … … 48 49 _, b, err := wic.conn.Read(ctx) 49 50 if err != nil { 50 return nil, err 51 switch websocket.CloseStatus(err) { 52 case websocket.StatusNormalClosure, websocket.StatusGoingAway: 53 return nil, io.EOF 54 default: 55 return nil, err 56 } 51 57 } 52 58 return irc.ParseMessage(string(b))
Note:
See TracChangeset
for help on using the changeset viewer.