Stabilize Keys on login
This commit is contained in:
@@ -6,6 +6,7 @@ import {
|
||||
bareHolesailManagedEnsureServerSeedPersisted,
|
||||
bareHolesailManagedGenerateSeedHex,
|
||||
bareHolesailManagedReadState,
|
||||
bareHolesailManagedRuntimeRunning,
|
||||
bareHolesailManagedServiceIsRunning,
|
||||
bareHolesailManagedStartOne,
|
||||
bareHolesailManagedWriteState
|
||||
@@ -74,7 +75,10 @@ export async function ensureBareOsWwwHolesailTunnel(ctx, env, port) {
|
||||
/** @type {Record<string, string | undefined>} */ (env),
|
||||
id
|
||||
)
|
||||
if (bareHolesailManagedServiceIsRunning()) {
|
||||
if (
|
||||
bareHolesailManagedServiceIsRunning() &&
|
||||
!bareHolesailManagedRuntimeRunning(id)
|
||||
) {
|
||||
try {
|
||||
await bareHolesailManagedStartOne(
|
||||
ctx,
|
||||
@@ -115,7 +119,10 @@ export async function ensureBareOsWwwHolesailTunnel(ctx, env, port) {
|
||||
id
|
||||
)
|
||||
void path
|
||||
if (bareHolesailManagedServiceIsRunning()) {
|
||||
if (
|
||||
bareHolesailManagedServiceIsRunning() &&
|
||||
!bareHolesailManagedRuntimeRunning(id)
|
||||
) {
|
||||
try {
|
||||
await bareHolesailManagedStartOne(
|
||||
ctx,
|
||||
|
||||
Reference in New Issue
Block a user