aboutsummaryrefslogtreecommitdiff
path: root/hotline/client_conn.go
diff options
context:
space:
mode:
authorJeff Halter <868228+jhalter@users.noreply.github.com>2023-01-18 15:02:59 -0800
committerGitHub <noreply@github.com>2023-01-18 15:02:59 -0800
commita251acd43adcd88388a00b7ebd7d8df0486adeba (patch)
tree24e46c14b6b78b6038d5eaf963d5e61728053e63 /hotline/client_conn.go
parent0ac5e4e7943c4aa795b9e9300b397ce1debebbcb (diff)
parent8ce5db7c06589e30b22e4fb7ec8fdb415f711f60 (diff)
Merge pull request #90 from jhalter/refactor_client_agreement_flow
Improve third party client compatability
Diffstat (limited to 'hotline/client_conn.go')
-rw-r--r--hotline/client_conn.go3
1 files changed, 1 insertions, 2 deletions
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)
}