server BUGFIX nc_ps_poll deadlock due to multi-thread conflict
diff --git a/src/session_p.h b/src/session_p.h
index 333eb09..a52f396 100644
--- a/src/session_p.h
+++ b/src/session_p.h
@@ -424,12 +424,14 @@
     NC_PS_STATE_INVALID        /**< session is invalid and was already returned by another poll */
 };
 
+struct nc_ps_session {
+    struct nc_session *session;
+    enum nc_ps_session_state state;
+};
+
 /* ACCESS locked */
 struct nc_pollsession {
-    struct {
-        struct nc_session *session;
-        enum nc_ps_session_state state;
-    } *sessions;
+    struct nc_ps_session **sessions;
     uint16_t session_count;
     uint16_t last_event_session;