X-Git-Url: https://git.r.bdr.sh/rbdr/mobius/blobdiff_plain/945b98135dceeebc524fd7fc557204c80f09c21d..6f1ec3d2f60d2f01338b8b0ff0cb3749aa640ac1:/hotline/client_conn.go?ds=inline diff --git a/hotline/client_conn.go b/hotline/client_conn.go index 8c95aeb..14aef9e 100644 --- a/hotline/client_conn.go +++ b/hotline/client_conn.go @@ -44,7 +44,6 @@ type ClientConn struct { transfersMU sync.Mutex transfers map[int]map[[4]byte]*FileTransfer - Agreed bool logger *zap.SugaredLogger } @@ -157,7 +156,7 @@ func (cc *ClientConn) Disconnect() { // notifyOthers sends transaction t to other clients connected to the server func (cc *ClientConn) notifyOthers(t Transaction) (trans []Transaction) { for _, c := range sortedClients(cc.Server.Clients) { - if c.ID != cc.ID && c.Agreed { + if c.ID != cc.ID { t.clientID = c.ID trans = append(trans, t) }