summary refs log tree commit diff
path: root/user.c
diff options
context:
space:
mode:
Diffstat (limited to 'user.c')
-rw-r--r--user.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/user.c b/user.c
index 0932b0e..638f061 100644
--- a/user.c
+++ b/user.c
@@ -98,7 +98,7 @@ user_remove(size_t pid)
 	for (i = 0; i < last->channels_c; ++i)
 	{
 		for (j = 0; j < last->channels[i]->peers_c; ++j)
-			if (last->channels[i]->peers[j].p->fd == last->fd)
+			if (last->channels[i]->peers[j].p == last)
 				break;
 		if (j == last->channels[i]->peers_c)
 		{