mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
replace chan struct{}.
This commit is contained in:
internal
@ -30,7 +30,7 @@ func New(
|
||||
|
||||
return &WebSocketManagerCtx{
|
||||
logger: logger,
|
||||
shutdown: make(chan interface{}),
|
||||
shutdown: make(chan struct{}),
|
||||
sessions: sessions,
|
||||
desktop: desktop,
|
||||
handler: handler.New(sessions, desktop, capture, webrtc),
|
||||
@ -41,7 +41,7 @@ func New(
|
||||
type WebSocketManagerCtx struct {
|
||||
logger zerolog.Logger
|
||||
wg sync.WaitGroup
|
||||
shutdown chan interface{}
|
||||
shutdown chan struct{}
|
||||
sessions types.SessionManager
|
||||
desktop types.DesktopManager
|
||||
handler *handler.MessageHandlerCtx
|
||||
|
Reference in New Issue
Block a user