jamulussoftware / jamulussoftware/jamulus

Connection status client and gui can get out of sync.

Aperta
#2,519 3 commenti 0 reazioni 0 assegnatari Vedi su GitHub
bug
Lingua principale
C
Stelle
1.1k
Fork
248
Merge medio
2g 3h
PR unite (30g)
9

Descrizione

**Describe the bug**

There are several occasions where Client connection and GUI can get out of sync.
If this is the case the gui will show connected state (and disconnect button) while still connected or the gui will show disconnected state (and connect button) while not connected.
Also there are cases where GUI shows the "Disconnect" button, but opens the "Connect" dialog when pressed.

**To Reproduce**

This mostly happens when you change to an invalid device while connected.
It also happens in other cases of device errors but these are harder to reproduce.

**Expected behavior**

GUI should always show the correct state.

**Screenshots**

**Operating system**

**Version of Jamulus**
All Jamulus versions

**Additional context**

I finally found the problem (after a long time), And there are two causes:
1: Connect/Disconnect is implemented in the CClientDlg code, with a lot of calls to CClient (Doesn't belong here, since this is not GUI functionality.)
2: Some functions in CCLient have ambiguous names, so wrong functions are used to check if connected (actually checking Sound.IsStarted)

This issue will be solved in my "sound re-design" repo.

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Inizia tracciando la gestione delle connessioni e delle disconnessioni tra CClientDlg e CClient, concentrandoti su invalid-device e sugli altri percorsi di device-error. Verifica quali controlli della connessione determinano lo stato della GUI e dei pulsanti; il lavoro è completo quando la GUI riflette coerentemente la connessione effettiva e apre l’azione corretta di connessione o disconnessione. La nota dell’issue indica che il lavoro è stato spostato in un sound re-design repo.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
c
Ambito
audio-video-rtc, desktop
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.