1.1 --- a/libfsclient/lib/src/notifier.cc Mon Mar 14 01:33:25 2022 +0100
1.2 +++ b/libfsclient/lib/src/notifier.cc Mon Mar 14 17:44:41 2022 +0100
1.3 @@ -30,7 +30,6 @@
1.4
1.5 #include "notification_client.h"
1.6 #include "notifier.h"
1.7 -#include "notifier_peer_client.h"
1.8
1.9
1.10
1.11 @@ -205,12 +204,11 @@
1.12 return err;
1.13 }
1.14
1.15 - /* Subscribe, sending the notification endpoint and obtaining a peer endpoint
1.16 - for unsubscribing. */
1.17 + /* Subscribe, sending the notification endpoint. */
1.18
1.19 client_Notification notify(file->ref);
1.20
1.21 - err = notify.subscribe(state.endpoint, flags, &state.peer);
1.22 + err = notify.subscribe(state.endpoint, flags);
1.23
1.24 if (err)
1.25 {
1.26 @@ -235,14 +233,13 @@
1.27 if (state.is_null())
1.28 return -L4_EINVAL;
1.29
1.30 - /* Unsubscribe via the peer endpoint. */
1.31 + /* Unsubscribe via the notification interface. */
1.32
1.33 - client_NotifierPeer peer(state.peer);
1.34 + client_Notification notify(file->ref);
1.35
1.36 - peer.unsubscribe();
1.37 + notify.unsubscribe();
1.38
1.39 ipc_cap_free_um(state.endpoint);
1.40 - ipc_cap_free_um(state.peer);
1.41
1.42 _state.erase(file);
1.43