()
| 139 | // This function is used to kill the server process, remove the log files |
| 140 | // and quit the application. |
| 141 | export const cleanupAndQuitApp = () => { |
| 142 | // Remove the server log file on exit |
| 143 | removeLogFile(); |
| 144 | |
| 145 | // Killing pgAdmin4 server process if application quits |
| 146 | if (pgadminServerProcess != null) { |
| 147 | try { |
| 148 | process.kill(pgadminServerProcess.pid); |
| 149 | } |
| 150 | catch (e) { |
| 151 | console.warn('Failed to kill server process.', e); |
| 152 | } |
| 153 | } |
| 154 | |
| 155 | session.defaultSession.clearStorageData({ |
| 156 | storages: ['cookies', 'localstorage'], |
| 157 | }); |
| 158 | }; |
nothing calls this directly
no test coverage detected