Make Observer to be able to observe multiple Observables. (#1234)

* Make Observer to be able to observe multiple Observables.

* Fix Observer destructor cleanup.

Co-authored-by: Sacha Weatherstone <sachaw100@hotmail.com>
This commit is contained in:
Balázs Kelemen
2022-04-14 08:43:06 +10:00
committed by GitHub
co-authored by GitHub Sacha Weatherstone
parent f511baba9a
commit b76424db50
3 changed files with 15 additions and 15 deletions
+1 -1
View File
@@ -48,7 +48,7 @@ void PhoneAPI::close()
if (state != STATE_SEND_NOTHING) {
state = STATE_SEND_NOTHING;
unobserve();
unobserve(&service.fromNumChanged);
releasePhonePacket(); // Don't leak phone packets on shutdown
onConnectionChanged(false);