k_server_session: fix crashes
This commit is contained in:
		| @@ -91,7 +91,7 @@ private: | |||||||
|  |  | ||||||
|     /// List of threads which are pending a reply. |     /// List of threads which are pending a reply. | ||||||
|     boost::intrusive::list<KSessionRequest> m_request_list; |     boost::intrusive::list<KSessionRequest> m_request_list; | ||||||
|     KSessionRequest* m_current_request; |     KSessionRequest* m_current_request{}; | ||||||
|  |  | ||||||
|     KLightLock m_lock; |     KLightLock m_lock; | ||||||
| }; | }; | ||||||
|   | |||||||
| @@ -80,7 +80,6 @@ ResultVal<Kernel::KPort*> ServiceManager::GetServicePort(const std::string& name | |||||||
|     } |     } | ||||||
|  |  | ||||||
|     auto* port = Kernel::KPort::Create(kernel); |     auto* port = Kernel::KPort::Create(kernel); | ||||||
|     SCOPE_EXIT({ port->Close(); }); |  | ||||||
|  |  | ||||||
|     port->Initialize(ServerSessionCountMax, false, name); |     port->Initialize(ServerSessionCountMax, false, name); | ||||||
|     auto handler = it->second; |     auto handler = it->second; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Liam
					Liam