Skip to content

Bug: App fails to connect after long periods of inactivity (resolved by restarting) #572

@21Mill

Description

@21Mill

Describe the bug
When I launch the Mostro client after a long period of inactivity, sometimes it fails to connect to the main instance or any other instance. Attempting to change the instance or reload the relay information does not work. However, simply restarting the application resolves the issue completely, and the connection is established immediately on the first try.

To Reproduce
Steps to reproduce the behavior:

  1. Leave the Mostro client inactive or closed for a long period.
  2. Launch the application.
  3. Observe that it fails to connect to the main instance or any other instances.
  4. Attempt to change the instance or reload the relay information (notice that it does not fix the connection).
  5. Restart the application.
  6. Notice that the connection is now established instantly.

Expected behavior
The application should successfully connect to the selected instance upon the initial launch, even after a long period of inactivity, without requiring a manual restart of the app.

Screenshots
I have attached a video demonstrating the behavior.
[Añade aquí el enlace o sube el archivo de tu video]

Desktop (please complete the following information):

  • OS: Linux Mint
  • Browser: N/A (Desktop App)
  • Version: 1.2.3

Smartphone (please complete the following information):

  • Device: OnePlus 13T
  • OS: Android
  • Browser: N/A (Mobile App)
  • Version: 1.2.3

Additional context
The issue is cross-platform, as it happens exactly the same way on both Linux and Android. It seems that once the connection fails initially, the internal state cannot be recovered by manually refreshing relays or changing instances, requiring a full application restart to restore connectivity.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions