We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0223b8b commit 036e5a0Copy full SHA for 036e5a0
stack_gvisor.go
@@ -153,7 +153,9 @@ func (t *GVisor) Start() error {
153
}
154
155
func (t *GVisor) Close() error {
156
- t.endpoint.Attach(nil)
+ if t.endpoint != nil {
157
+ t.endpoint.Attach(nil)
158
+ }
159
t.stack.Close()
160
for _, endpoint := range t.stack.CleanupEndpoints() {
161
endpoint.Abort()
stack_mixed.go
@@ -261,7 +261,9 @@ func (m *Mixed) packetLoop() {
261
262
263
func (m *Mixed) Close() error {
264
- m.endpoint.Attach(nil)
+ if m.endpoint != nil {
265
+ m.endpoint.Attach(nil)
266
267
m.stack.Close()
268
for _, endpoint := range m.stack.CleanupEndpoints() {
269
0 commit comments