Skip to content

Commit

Permalink
Report last recorded transmission on (net.Conn).Close
Browse files Browse the repository at this point in the history
  • Loading branch information
rjeczalik committed Jan 15, 2015
1 parent c8de4b5 commit 3e77877
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions proxy.go
Expand Up @@ -56,6 +56,7 @@ func (rc *recConn) Close() (err error) {
if len(rc.t) > 0 && rc.t[len(rc.t)-1].Src == nil {
rc.t = rc.t[:len(rc.t)-1]
}
rc.rec(&rc.t[len(rc.t)-1])
rc.commit(rc.t)
rc.wg.Done()
})
Expand Down

0 comments on commit 3e77877

Please sign in to comment.