]> Cypherpunks.ru repositories - gostls13.git/commit
context: avoid duplicate removeChild
authorWeerasak Chongnguluam <singpor@gmail.com>
Thu, 20 Jul 2017 18:53:55 +0000 (01:53 +0700)
committerBrad Fitzpatrick <bradfitz@golang.org>
Wed, 3 Oct 2018 15:26:10 +0000 (15:26 +0000)
commit119fafcaa5ace647961b59d304b275d93a3e6e97
tree0dbbe43542fe400c3a84c013d2ca278c5c245524
parentc96e3bcc97a965b3e2947cc1d8d831b8d39c1d73
context: avoid duplicate removeChild

When deadline has already passed,
current context is canceled before return cancel function.
So is unnecessary to call cancel with remove from parent again
in return cancel function.

Change-Id: I37c687c57a29d9f139c7fb648ce7de69093ed623
Reviewed-on: https://go-review.googlesource.com/c/50410
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/context/context.go