@@ -28,13 +28,13 @@ type ChatHandlerOBSOLETE struct {
2828 client ChatClientOBSOLETE
2929 cancelFunc context.CancelFunc
3030 messagesOutChan chan streamcontrol.ChatMessage
31- onClose func (context.Context )
31+ onClose func (context.Context , * ChatHandlerOBSOLETE )
3232}
3333
3434func (k * Kick ) newChatHandlerOBSOLETE (
3535 ctx context.Context ,
3636 channelSlug string ,
37- onClose func (context.Context ),
37+ onClose func (context.Context , * ChatHandlerOBSOLETE ),
3838) (* ChatHandlerOBSOLETE , error ) {
3939 reverseEngClient , err := kickcom .New ()
4040 if err != nil {
@@ -51,7 +51,7 @@ func NewChatHandlerOBSOLETE(
5151 ctx context.Context ,
5252 chatClient ChatClientOBSOLETE ,
5353 channelID uint64 ,
54- onClose func (context.Context ),
54+ onClose func (context.Context , * ChatHandlerOBSOLETE ),
5555) (_ret * ChatHandlerOBSOLETE , _err error ) {
5656 logger .Debugf (ctx , "NewChatHandlerOBSOLETE(ctx, client, %d, %p)" , channelID , onClose )
5757 defer func () {
@@ -71,7 +71,7 @@ func NewChatHandlerOBSOLETE(
7171 observability .Go (ctx , func (ctx context.Context ) {
7272 if onClose != nil {
7373 defer func () {
74- onClose (ctx )
74+ onClose (ctx , h )
7575 }()
7676 }
7777 defer func () {
0 commit comments