diff options
| author | ruki <[email protected]> | 2025-12-15 23:31:29 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2025-12-15 23:31:29 +0800 |
| commit | 5ddfccee2173989269704dfc463c948b8bd6653e (patch) | |
| tree | 24d5aca7c6d21b05ffc07f8b5af9826e3e65c88d | |
| parent | f185da7553866891b71ab046b44769833cd6e005 (diff) | |
improve session id
| -rw-r--r-- | xmake/core/base/tty.lua | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/xmake/core/base/tty.lua b/xmake/core/base/tty.lua index 742b819ab..dd053b3e6 100644 --- a/xmake/core/base/tty.lua +++ b/xmake/core/base/tty.lua @@ -550,7 +550,10 @@ function tty.session_id() session_id = hash.strhash32(sid) end end - tty._SESSION_ID = session_id or 0 + if not session_id then + session_id = "00000000" + end + tty._SESSION_ID = session_id end return session_id end |
