Don't use stdout monitor for actions

This commit is contained in:
Jon Evans
2025-01-18 10:23:10 -05:00
parent 6122fca858
commit 7993daecf0
2 changed files with 6 additions and 4 deletions
+5 -3
View File
@@ -87,11 +87,11 @@ void KICAD_API_SERVER::Start()
return;
}
if( socket.FileExists() )
if( socket.Exists() )
{
socket.SetFullName( wxString::Format( wxS( "api-%ul.sock" ), ::wxGetProcessId() ) );
socket.SetFullName( wxString::Format( wxS( "api-%lu.sock" ), ::wxGetProcessId() ) );
if( socket.FileExists() )
if( socket.Exists() )
{
wxLogTrace( traceApi, wxString::Format( "Server: PID socket path %s already exists!",
socket.GetFullPath() ) );
@@ -210,6 +210,8 @@ void KICAD_API_SERVER::handleApiEvent( wxCommandEvent& aEvent )
if( ADVANCED_CFG::GetCfg().m_EnableAPILogging )
log( "Response (ERROR): " + error.Utf8DebugString() );
return;
}
API_RESULT result;