Skip to content

Commit b0a5cad

Browse files
author
lec-bit
committed
adapt deserial
Signed-off-by: lec-bit <glfhzmy@126.com>
1 parent ed61953 commit b0a5cad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/bpf/bpf.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,11 +156,11 @@ func StopMda() error {
156156
func (l *BpfLoader) Stop() {
157157
var err error
158158
if restart.GetExitType() == restart.Restart {
159-
C.deserial_uninit()
159+
return
160160
}
161161

162162
closeMap(l.versionMap)
163-
163+
C.deserial_uninit()
164164
if l.config.KernelNativeEnabled() {
165165
if err = l.obj.Stop(); err != nil {
166166
CleanupBpfMap()

0 commit comments

Comments
 (0)