Skip to content
This repository was archived by the owner on Dec 11, 2019. It is now read-only.

Commit 16a7383

Browse files
committed
Merge pull request #15033 from ryanml/fix-15031
Fixes ENOENT issues on Windows
1 parent ee4df6f commit 16a7383

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/ethWallet-geth.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const isWindows = process.platform === 'win32'
2525
const gethProcessKey = isWindows ? 'geth.exe' : 'geth'
2626

2727
const ipcPath = isWindows ? '\\\\.\\pipe\\geth.ipc' : path.join(gethDataDir, 'geth.ipc')
28-
const pidPath = isWindows ? '\\\\.\\pipe\\geth.pid' : path.join(gethDataDir, 'geth.pid')
28+
const pidPath = path.join(gethDataDir, 'geth.pid')
2929
const pwPath = path.join(gethDataDir, 'wallets.pw')
3030
const gethProcessPath = path.join(getExtensionsPath('bin'), gethProcessKey)
3131

@@ -183,9 +183,9 @@ const cleanupGethAndExit = (exitCode) => {
183183
}
184184

185185
const cleanupGeth = (processId) => {
186-
processId = processId || gethProcessId
186+
processId = (processId || gethProcessId) || (geth && geth.pid)
187187

188-
if (!processId) return console.warn('GET: nothing to cleanup')
188+
if (!processId) return console.warn('GETH: nothing to cleanup')
189189

190190
// Set geth to null to remove bound listeners
191191
// Otherwise, geth will attempt to restart itself

0 commit comments

Comments
 (0)