liuxiaolong
2021-09-03 a6b0215037bd21c04834f6ae1d6abf2077332318
impl DeRegister
1个文件已修改
9 ■■■■■ 已修改文件
hbusc.go 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
hbusc.go
@@ -190,6 +190,15 @@
func (h *BHBus) DeRegister(dri *RegisterInfo) error {
    h.printLog("DeRegister")
    req := bhome_msg.ProcInfo{
        ProcId: []byte(h.ri.Proc.ID),
        Name: []byte(h.ri.Proc.Name),
    }
    reply := bhome_msg.MsgCommonReply{}
    if !bhsgo.Unregister(&req, &reply, h.conf.sendTimeOut) {
        h.printLog("Unregister false! ")
        return errors.New("Unregister false! ")
    }
    return nil
}