Skip to content

Commit dc7ae49

Browse files
committed
Revert "remove IndependentCancelCtx"
This reverts commit b53f8b5.
1 parent 95c9609 commit dc7ae49

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

common/session/context.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ import (
1010
"github.com/xtls/xray-core/features/routing"
1111
)
1212

13+
//go:linkname IndependentCancelCtx context.newCancelCtx
14+
func IndependentCancelCtx(parent context.Context) context.Context
15+
1316
const (
1417
inboundSessionKey ctx.SessionKey = 1
1518
outboundSessionKey ctx.SessionKey = 2

0 commit comments

Comments
 (0)