X-Git-Url: https://git.r.bdr.sh/rbdr/mobius/blobdiff_plain/003a743e6767b3041c3a8321566c3586d73b399a..f4a69647659df356f7f1d1ab1d8b4eedcc34dfba:/hotline/client_conn.go diff --git a/hotline/client_conn.go b/hotline/client_conn.go index 4a471b3..65e18ee 100644 --- a/hotline/client_conn.go +++ b/hotline/client_conn.go @@ -151,7 +151,7 @@ func (cc *ClientConn) Authorize(access int) bool { } // Disconnect notifies other clients that a client has disconnected -func (cc ClientConn) Disconnect() { +func (cc *ClientConn) Disconnect() { cc.Server.mux.Lock() defer cc.Server.mux.Unlock() @@ -165,7 +165,7 @@ func (cc ClientConn) Disconnect() { } // notifyOthers sends transaction t to other clients connected to the server -func (cc ClientConn) notifyOthers(t Transaction) { +func (cc *ClientConn) notifyOthers(t Transaction) { for _, c := range sortedClients(cc.Server.Clients) { if c.ID != cc.ID && c.Agreed { t.clientID = c.ID