After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 572962 - [KB-Fixed] no longer goes offline when network disconnected
[KB-Fixed] no longer goes offline when network disconnected
Status: RESOLVED FIXED
Product: evolution
Classification: Applications
Component: Shell
2.26.x (obsolete)
Other Linux
: Normal normal
: ---
Assigned To: Evolution Shell Maintainers Team
Evolution QA team
evolution[kill-bonobo]
Depends on:
Blocks:
 
 
Reported: 2009-02-24 10:37 UTC by Sebastien Bacher
Modified: 2013-09-13 01:00 UTC
See Also:
GNOME target: ---
GNOME version: 2.25/2.26


Attachments
Unbork trunk (1.44 KB, patch)
2009-02-24 19:00 UTC, Matthew Barnes
committed Details | Review

Description Sebastien Bacher 2009-02-24 10:37:39 UTC
the bug has been opened on https://bugs.launchpad.net/bugs/300262

"Evolution use to change from offline to online (and visa-versa) when the NetworkManager state changed. It no longer does this - it stays online even when the network is disconnected."
Comment 1 Matthew Barnes 2009-02-24 16:18:02 UTC
Still responds to state changes from NetworkManager, but I found two problems:

  1) We don't check the current network state on startup.  We use whatever
     the online state was when we last exited.  This is fine if we chose to
     go offline, but if we were -forced- offline we should try to reconnect
     again.  Currently we don't distinguish.

  2) Unselecting "Enable Wireless" from NetworkManager emits a StateChanged
     signal with an argument value of NM_STATE_DISCONNECTED.  We detect that
     and correctly go into a "forced offline" state, and then automatically
     reconnect when we're back on a wireless network.

     Unselecting "Enable Networking" from NetworkManager, however, emits a
     StateChanged signal with an argument value of NM_STATE_ASLEEP.  We're
     not checking for that and we should.  For our purposes we should
     handle it the same as NM_STATE_DISCONNECTED.
Comment 2 Matthew Barnes 2009-02-24 18:24:24 UTC
Think I'll deal with (1) as a separate enhancement and just tackle (2) here.

Got it working on the kill-bonobo branch.  I'll tackle trunk next.
Comment 3 Matthew Barnes 2009-02-24 19:00:46 UTC
Created attachment 129421 [details] [review]
Unbork trunk

So trunk was pretty borked, and it's probably my fault.  This made it work again for me, and it also now correctly handles NM_STATE_ASLEEP.
Comment 4 Sebastien Bacher 2009-02-24 22:32:52 UTC
I can confirm that the patch fixes the issue
Comment 5 Matthew Barnes 2009-02-24 23:46:34 UTC
Patch committed to trunk (revision 37320).