1.1 --- a/libfsserver/lib/pipes/pipe_paging.cc Mon Jul 12 23:18:16 2021 +0200
1.2 +++ b/libfsserver/lib/pipes/pipe_paging.cc Tue Jul 13 00:26:11 2021 +0200
1.3 @@ -47,7 +47,7 @@
1.4
1.5 int PipePaging::closed()
1.6 {
1.7 - return _endpoints < 2;
1.8 + return _active_endpoints < 2;
1.9 }
1.10
1.11 void PipePaging::discard_region(unsigned int i)
1.12 @@ -66,14 +66,14 @@
1.13
1.14 void PipePaging::detach()
1.15 {
1.16 - if (!_endpoints)
1.17 + if (!_active_endpoints)
1.18 return;
1.19 else
1.20 - _endpoints--;
1.21 + _active_endpoints--;
1.22
1.23 /* Return if the other endpoint is attached. */
1.24
1.25 - if (_endpoints)
1.26 + if (_active_endpoints)
1.27 return;
1.28
1.29 /* Discard all regions from the pipe. */