mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-06 15:05:59 +00:00
Start/Stop IPC when changing the config setting
This commit is contained in:
parent
907e0fa8c8
commit
f8e0c9e27a
2 changed files with 15 additions and 1 deletions
|
|
@ -108,12 +108,14 @@ namespace IPC_socket
|
|||
int port = g_cfg_ipc.get_port();
|
||||
if (!m_ipc_server || port != m_old_port)
|
||||
{
|
||||
IPC.notice("Starting server with port %d", port);
|
||||
m_ipc_server = std::make_unique<IPC_server>();
|
||||
m_old_port = port;
|
||||
}
|
||||
}
|
||||
else
|
||||
else if (m_ipc_server)
|
||||
{
|
||||
IPC.notice("Stopping server");
|
||||
m_ipc_server.reset();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue