This commit is contained in:
laodaming 2023-09-22 11:37:44 +08:00
parent 951635e7f8
commit 21c4907e44

View File

@ -73,10 +73,12 @@ func (w *wsConnectItem) consumeRenderImageData() {
case data := <-w.extendRenderProperty.renderChan: //消费数据
//属性不同则不发送渲染
if data.RenderData.TemplateTag != w.extendRenderProperty.templateTag {
logx.Info("丢弃切换了标签之前的渲染")
continue
}
//属性不同则不发送渲染
if data.RenderData.TemplateTagColor.SelectedColorIndex != w.extendRenderProperty.colorSelectedIndex {
logx.Info("丢弃切换了颜色之前的渲染")
continue
}
limitChan <- struct{}{}