Skip to content

Commit 44f6657

Browse files
committed
fix bug
1 parent fa2276b commit 44f6657

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

extension/script/backend/bootstrap.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ local tag = require 'backend.tag'
44
local m = {}
55

66
local function hasMaster()
7-
local ok = pcall(channel.query, tag.getChannelKeyMaster())
8-
return ok
7+
local ok, masterChannel = pcall(channel.query, tag.getChannelKeyMaster())
8+
return ok and masterChannel
99
end
1010

1111
local function initMaster(rootpath, address)

0 commit comments

Comments
 (0)