Skip to content
  • Romain Perier's avatar
    [gsm] Delay the creation of the GsmXSMPClient until it really exists · b0dc999e
    Romain Perier authored and Vincent Untz's avatar Vincent Untz committed
    We used to create the GsmXSMPClient before the XSMP connection is really
    accepted. This can lead to some issues, though. An example is:
    https://bugzilla.gnome.org/show_bug.cgi?id=598211#c19. Quoting:
    
     "What is happening is that a new client (probably metacity in your
     case) is opening an ICE connection in the GSM_MANAGER_PHASE_END_SESSION
     phase, which causes a new GsmXSMPClient to be added to the client
     store. The GSM_MANAGER_PHASE_EXIT phase then begins before the client
     has had a chance to establish a xsmp connection, which means that
     client->priv->conn will not be initialized at the point that xsmp_stop
     is called on the new unregistered client."
    
    The fix is to create the GsmXSMPClient object when there's a real XSMP
    connection. This implies moving the timeout that makes sure we don't
    have an empty client to the XSMP server.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=598211
    b0dc999e