summaryrefslogtreecommitdiff
path: root/nest/proto.c
diff options
context:
space:
mode:
Diffstat (limited to 'nest/proto.c')
-rw-r--r--nest/proto.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/nest/proto.c b/nest/proto.c
index c9e2f5c7..16ec3f9b 100644
--- a/nest/proto.c
+++ b/nest/proto.c
@@ -577,10 +577,8 @@ proto_fell_down(struct proto *p)
bzero(&p->stats, sizeof(struct proto_stats));
rt_unlock_table(p->table);
-#ifdef CONFIG_PIPE
- if (proto_is_pipe(p))
- rt_unlock_table(pipe_get_peer_table(p));
-#endif
+ if (p->proto->cleanup)
+ p->proto->cleanup(p);
proto_rethink_goal(p);
}