diff options
author | Simon McVittie <smcv@debian.org> | 2020-05-01 10:36:48 +0100 |
---|---|---|
committer | Simon McVittie <smcv@debian.org> | 2020-05-01 11:13:33 +0100 |
commit | 6a3df54f90444d1819d9bd83404ab7ce9e44dc34 (patch) | |
tree | d8e0aecdd460d2c828979fe4e63911736853b7a7 | |
parent | 16f690f89c317764bc8b911bcf374926ccce738c (diff) | |
download | libproxy-git-6a3df54f90444d1819d9bd83404ab7ce9e44dc34.tar.gz |
gsettings: Wait for all configuration updates
If we haven't polled the pxgsettings helper for a while, there might
be more proxy configuration updates in the pipe than will fit in a
single read() call.
Signed-off-by: Simon McVittie <smcv@debian.org>
-rw-r--r-- | libproxy/modules/config_gnome3.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libproxy/modules/config_gnome3.cpp b/libproxy/modules/config_gnome3.cpp index e56146d..6a5d50b 100644 --- a/libproxy/modules/config_gnome3.cpp +++ b/libproxy/modules/config_gnome3.cpp @@ -191,7 +191,7 @@ public: FD_ZERO(&rfds); FD_SET(fileno(this->read), &rfds); - if (select(fileno(this->read)+1, &rfds, NULL, NULL, &timeout) > 0) + while (select(fileno(this->read)+1, &rfds, NULL, NULL, &timeout) > 0) this->read_data(); // Mode is wpad:// or pac+http://... |