diff --git a/rune/libenclave/internal/runtime/pal/pal_linux.go b/rune/libenclave/internal/runtime/pal/pal_linux.go index 069979bc1c05b157c683b24595f6e8924b61bb7d..4af135b3c8523d8a6b362892858c17d003c61e83 100644 --- a/rune/libenclave/internal/runtime/pal/pal_linux.go +++ b/rune/libenclave/internal/runtime/pal/pal_linux.go @@ -31,11 +31,11 @@ func (pal *enclaveRuntimePal) Init(args string, logLevel string) error { api := &enclaveRuntimePalApiV1{} ver := api.get_version() if ver > palApiVersion { - return fmt.Errorf("unsupported pal api version %d", ver) - } - pal.version = ver + return fmt.Errorf("unsupported pal api version %d", ver) + } + pal.version = ver - C.workaround_nanosleep(); + C.workaround_nanosleep() return api.init(args, logLevel) }