Fixing potential timing conflict

This commit is contained in:
Sarah Jamie Lewis 2018-07-28 09:05:38 -07:00
父節點 96b6cf6bb8
當前提交 8b64ba19fd
共有 1 個檔案被更改,包括 1 行新增2 行删除

查看文件

@ -64,10 +64,9 @@ func (cpsc *CwtchPeerSendChannel) OpenOutbound(channel *channels.Channel) ([]byt
func (cpsc *CwtchPeerSendChannel) OpenOutboundResult(err error, crm *Protocol_Data_Control.ChannelResult) {
if err == nil {
if crm.GetOpened() {
cpsc.channel.Pending = false
ce, _ := proto.GetExtension(crm, protocol.E_ServerNonce)
cpsc.challenge = ce.([]byte)[:]
cpsc.channel.Pending = false
}
}
}