1.1 --- a/libfsclient/lib/src/file.cc Sun Mar 26 01:04:44 2023 +0100
1.2 +++ b/libfsclient/lib/src/file.cc Sun Mar 26 01:36:53 2023 +0100
1.3 @@ -107,12 +107,8 @@
1.4 {
1.5 if (l4_is_valid_cap(file->ref))
1.6 {
1.7 + notifier_get_task_notifier()->unsubscribe(file_notifiable(file));
1.8 ipc_cap_free_um(file->ref);
1.9 -
1.10 - /* Only unsubscribe after actually closing the file and sending any
1.11 - notifications. */
1.12 -
1.13 - notifier_get_task_notifier()->unsubscribe(file_notifiable(file));
1.14 }
1.15
1.16 if (file->memory != NULL)