syncthing/cmd
Audrius Butkevicius 44a542391e lib/connections: Trust the model to tell us if we are connected
This should address issue as described in https://forum.syncthing.net/t/stun-nig-party-with-paused-devices/10942/13
Essentially the model and the connection service goes out of sync in terms of thinking if we are connected or not.
Resort to model as being the ultimate source of truth.

I can't immediately pin down how this happens, yet some ideas.

ConfigSaved happens in separate routine, so it's possbile that we have some sort of device removed yet connection comes in parallel kind of thing.
However, in this case the connection exists in the model, and does not exist in the connection service and the only way for the connection to be removed
in the connection service is device removal from the config.

Given the subject, this might also be related to the device being paused.

Also, adds more info to the logs

GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4533
2017-11-21 07:25:38 +00:00
..
stbench all: Fix comment typos 2017-11-04 07:20:11 +00:00
stcli all: Convert folders to use filesystem abstraction 2017-08-19 14:36:56 +00:00
stcompdirs lib: Folder marker is now a folder 2017-09-02 05:52:38 +00:00
stdisco all: Update license url to https (ref #3976) 2017-02-09 08:04:16 +01:00
stdiscosrv all: Weed out a few other http urls (ref #3976) 2017-02-09 08:04:16 +01:00
stevents all: Update license url to https (ref #3976) 2017-02-09 08:04:16 +01:00
stfileinfo lib/fs, lib/model, lib/scanner: Make scans cancellable (fixes #3965) 2017-04-26 00:15:23 +00:00
stfinddevice all: Update license url to https (ref #3976) 2017-02-09 08:04:16 +01:00
stgenfiles all: Update license url to https (ref #3976) 2017-02-09 08:04:16 +01:00
stindex all: Convert folders to use filesystem abstraction 2017-08-19 14:36:56 +00:00
strelaypoolsrv gui: HTML accessibility updates 2017-07-15 09:54:37 +00:00
strelaysrv all: Fix comment typos 2017-11-04 07:20:11 +00:00
stsigtool all: Update license url to https (ref #3976) 2017-02-09 08:04:16 +01:00
stvanity all: Update license url to https (ref #3976) 2017-02-09 08:04:16 +01:00
stwatchfile all: Update license url to https (ref #3976) 2017-02-09 08:04:16 +01:00
syncthing lib/connections: Trust the model to tell us if we are connected 2017-11-21 07:25:38 +00:00
todos all: Update license url to https (ref #3976) 2017-02-09 08:04:16 +01:00
.gitignore Remove reprecated st* utils 2014-07-01 12:20:25 +02:00