From eda313d29e05890e589cd523cb8d44fc5dc60823 Mon Sep 17 00:00:00 2001 From: mountain Date: Sat, 11 Nov 2023 21:43:17 +0900 Subject: [PATCH] =?UTF-8?q?disconnect=20=EC=8B=9C=EA=B7=B8=EB=8B=88?= =?UTF-8?q?=EC=B3=90=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/connection.go | 2 +- core/friend.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/connection.go b/core/connection.go index 667d314..b20a954 100644 --- a/core/connection.go +++ b/core/connection.go @@ -95,7 +95,7 @@ func (cs *connections) ClientConnected(conn *websocket.Conn, callby *wshandler.S cs.new(callby.Accid, conn) } -func (cs *connections) ClientDisconnected(conn *websocket.Conn, callby *wshandler.Sender) { +func (cs *connections) ClientDisconnected(msg string, callby *wshandler.Sender) { cs.delete(callby.Accid) } diff --git a/core/friend.go b/core/friend.go index 6d2230b..78115c6 100644 --- a/core/friend.go +++ b/core/friend.go @@ -196,7 +196,7 @@ func makeFriends(ctx context.Context, so *Social, conns *connections) (*friends, }, nil } -func (fs *friends) ClientDisconnected(conn *websocket.Conn, callby *wshandler.Sender) { +func (fs *friends) ClientDisconnected(msg string, callby *wshandler.Sender) { // 로그 오프 상태를 알림 meidx := callby.Accid[11] % monitoring_center_count fs.moncen[meidx].publishState(callby.Accid, "")