server session BUGFIX typo
diff --git a/src/session_server.c b/src/session_server.c
index ec3a37d..c64db5b 100644
--- a/src/session_server.c
+++ b/src/session_server.c
@@ -82,7 +82,7 @@
     pthread_mutex_unlock(&endpt->endpt_lock);
 
     /* READ UNLOCK */
-    pthread_rwlock_rdlock(&server_opts.endpt_array_lock);
+    pthread_rwlock_unlock(&server_opts.endpt_array_lock);
 }
 
 API void