From 7bafa40708c6c2fe9856d7b9510af45b4e0d3022 Mon Sep 17 00:00:00 2001 From: Kegan Dougal Date: Fri, 2 Sep 2016 10:26:23 +0100 Subject: [PATCH] Only Sync if told to do so --- src/github.com/matrix-org/go-neb/clients/clients.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/github.com/matrix-org/go-neb/clients/clients.go b/src/github.com/matrix-org/go-neb/clients/clients.go index 71b72de..79fce5c 100644 --- a/src/github.com/matrix-org/go-neb/clients/clients.go +++ b/src/github.com/matrix-org/go-neb/clients/clients.go @@ -219,7 +219,9 @@ func (c *Clients) newClient(config types.ClientConfig) (*matrix.Client, error) { }) } - go client.Sync() + if config.Sync { + go client.Sync() + } return client, nil }