1.1 --- a/libfsserver/lib/pipes/pipe_pager.cc Fri Mar 24 00:46:26 2023 +0100
1.2 +++ b/libfsserver/lib/pipes/pipe_pager.cc Fri Mar 24 16:14:44 2023 +0100
1.3 @@ -58,8 +58,6 @@
1.4 if (_paging == NULL)
1.5 return;
1.6
1.7 - unsigned int attached = _paging->detach();
1.8 -
1.9 /* Notify the other endpoint and unsubscribe. */
1.10
1.11 _paging->notify_others(_writing ? PipePaging::WRITER : PipePaging::READER,
1.12 @@ -68,7 +66,7 @@
1.13
1.14 /* Deallocate the paging coordinator if no other endpoints are active. */
1.15
1.16 - if (!attached)
1.17 + if (!_paging->detach())
1.18 {
1.19 delete _paging;
1.20 _paging = NULL;