diff options
Diffstat (limited to 'hostmux')
-rw-r--r-- | hostmux/mux.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/hostmux/mux.c b/hostmux/mux.c index 81d3961f..ddca89d1 100644 --- a/hostmux/mux.c +++ b/hostmux/mux.c @@ -240,10 +240,8 @@ lookup_cached (struct hostmux *mux, const char *host, int purge, if (strcasecmp (host, 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) { |