You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Result:
Network notifications are still received after GA_disconnect and GA_destroy_session calls (for example when you stop and restart internet connection).
The session is stopped with this change in session::disconnect:
- if (p && p->get_network_parameters().is_electrum()) {
+ if (p) {
GDK_LOG_SEV(log_level::debug) << "session is something and we are in electrum. Disconnect";
p->disconnect();
}
But helper boost threads are not stopped after that and so it's not a proper fix.
I'm attaching small program that could reproduce the bug. gdk_test.zip
The text was updated successfully, but these errors were encountered:
I replicated your error with your example.
However I noticed that you are reusing the GA_auth_handler across calls.
The documentation says that "Returned GA_auth_handler should be freed using GA_destroy_auth_handler."
Creating a new GA_auth_handler for each call and calling GA_destroy_auth_handler after solves the issues on my side (GDK correctly unsubscribes and I don't receive notifications after GA_destroy_session).
Please let me know if that solves the issue for you as well.
GA_disconnect
does not stop non-electrum network sessions.To reproduce call:
Result:
Network notifications are still received after
GA_disconnect
andGA_destroy_session
calls (for example when you stop and restart internet connection).The session is stopped with this change in
session::disconnect
:But helper boost threads are not stopped after that and so it's not a proper fix.
I'm attaching small program that could reproduce the bug.
gdk_test.zip
The text was updated successfully, but these errors were encountered: