fix
This commit is contained in:
parent
9f9f7d3fd6
commit
64a284bd77
|
@ -262,7 +262,7 @@ func (w *wsConnectItem) dealwithReciveData(data []byte) {
|
||||||
var parseInfo types.DataTransferData
|
var parseInfo types.DataTransferData
|
||||||
if err := json.Unmarshal(data, &parseInfo); err != nil {
|
if err := json.Unmarshal(data, &parseInfo); err != nil {
|
||||||
logx.Error("invalid format of websocket message")
|
logx.Error("invalid format of websocket message")
|
||||||
w.outChan <- w.respondDataFormat(constants.WEBSOCKET_ERR_DATA_FORMAT, "invalid format of websocket message")
|
w.outChan <- w.respondDataFormat(constants.WEBSOCKET_ERR_DATA_FORMAT, "invalid format of websocket message:"+string(data))
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
d, _ := json.Marshal(parseInfo.D)
|
d, _ := json.Marshal(parseInfo.D)
|
||||||
|
|
|
@ -26,7 +26,7 @@ func (w *wsConnectItem) SendToCloudRender(data []byte) {
|
||||||
select {
|
select {
|
||||||
case <-w.closeChan:
|
case <-w.closeChan:
|
||||||
return
|
return
|
||||||
case w.outChan <- w.respondDataFormat(constants.WEBSOCKET_ERR_DATA_FORMAT, "invalid format of websocket render image message"):
|
case w.outChan <- w.respondDataFormat(constants.WEBSOCKET_ERR_DATA_FORMAT, "invalid format of websocket render image message:"+string(data)):
|
||||||
logx.Error("invalid format of websocket render image message", err)
|
logx.Error("invalid format of websocket render image message", err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user