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

Fixes ENOENT issues on Windows #15033

Merged
merged 1 commit into from
Aug 16, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions app/ethWallet-geth.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const isWindows = process.platform === 'win32'
const gethProcessKey = isWindows ? 'geth.exe' : 'geth'

const ipcPath = isWindows ? '\\\\.\\pipe\\geth.ipc' : path.join(gethDataDir, 'geth.ipc')
const pidPath = isWindows ? '\\\\.\\pipe\\geth.pid' : path.join(gethDataDir, 'geth.pid')
const pidPath = path.join(gethDataDir, 'geth.pid')
const pwPath = path.join(gethDataDir, 'wallets.pw')
const gethProcessPath = path.join(getExtensionsPath('bin'), gethProcessKey)

Expand Down Expand Up @@ -185,9 +185,9 @@ const cleanupGethAndExit = (exitCode) => {
}

const cleanupGeth = (processId) => {
processId = processId || gethProcessId
processId = (processId || gethProcessId) || (geth && geth.pid)

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

// Set geth to null to remove bound listeners
// Otherwise, geth will attempt to restart itself
Expand Down