summaryrefslogtreecommitdiff
path: root/usermux/mux.c
diff options
context:
space:
mode:
Diffstat (limited to 'usermux/mux.c')
-rw-r--r--usermux/mux.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/usermux/mux.c b/usermux/mux.c
index bfa95fd2..7c57f940 100644
--- a/usermux/mux.c
+++ b/usermux/mux.c
@@ -298,10 +298,8 @@ lookup_cached (struct usermux *mux, const char *user, int purge,
if (strcasecmp (user, nm->name) == 0)
{
- pthread_spin_lock (&netfs_node_refcnt_lock);
- if (nm->node)
- nm->node->references++;
- pthread_spin_unlock (&netfs_node_refcnt_lock);
+ if (nm->node)
+ netfs_nref (nm->node);
if (nm->node)
{