We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 355e4e8 commit d105263Copy full SHA for d105263
stack_gvisor.go
@@ -97,6 +97,9 @@ func (t *GVisor) Start() error {
97
}
98
99
func (t *GVisor) Close() error {
100
+ if t.stack == nil {
101
+ return nil
102
+ }
103
t.endpoint.Attach(nil)
104
t.stack.Close()
105
for _, endpoint := range t.stack.CleanupEndpoints() {
stack_mixed.go
@@ -224,6 +224,9 @@ func (m *Mixed) packetLoop() {
224
225
226
func (m *Mixed) Close() error {
227
+ if m.stack == nil {
228
229
230
m.endpoint.Attach(nil)
231
m.stack.Close()
232
for _, endpoint := range m.stack.CleanupEndpoints() {
0 commit comments