fix
This commit is contained in:
parent
b8dbda6a4c
commit
a9b8df41f7
|
@ -19,10 +19,10 @@ func (w *wsConnectItem) newAllocationProcessor(msgType constants.Websocket) allo
|
||||||
switch msgType {
|
switch msgType {
|
||||||
//图片渲染
|
//图片渲染
|
||||||
case constants.WEBSOCKET_RENDER_IMAGE:
|
case constants.WEBSOCKET_RENDER_IMAGE:
|
||||||
obj = &renderProcessor{w}
|
obj = &renderProcessor{*w}
|
||||||
//刷新重连请求恢复上次连接的标识
|
//刷新重连请求恢复上次连接的标识
|
||||||
case constants.WEBSOCKET_REQUEST_REUSE_LAST_CONNECT:
|
case constants.WEBSOCKET_REQUEST_REUSE_LAST_CONNECT:
|
||||||
obj = &reuseConnProcessor{w}
|
obj = &reuseConnProcessor{*w}
|
||||||
default:
|
default:
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,7 +20,7 @@ import (
|
||||||
|
|
||||||
// 渲染处理器
|
// 渲染处理器
|
||||||
type renderProcessor struct {
|
type renderProcessor struct {
|
||||||
w *wsConnectItem
|
w wsConnectItem
|
||||||
}
|
}
|
||||||
|
|
||||||
// 云渲染属性
|
// 云渲染属性
|
||||||
|
|
|
@ -11,7 +11,7 @@ import (
|
||||||
|
|
||||||
// 复用连接处理器
|
// 复用连接处理器
|
||||||
type reuseConnProcessor struct {
|
type reuseConnProcessor struct {
|
||||||
w *wsConnectItem
|
w wsConnectItem
|
||||||
}
|
}
|
||||||
|
|
||||||
func (r *reuseConnProcessor) allocationMessage(data []byte) {
|
func (r *reuseConnProcessor) allocationMessage(data []byte) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user