Moves SQL to full IPC
This commit is contained in:
parent
34baa0fa2f
commit
be60b3d225
11 changed files with 110 additions and 334 deletions
|
@ -8,7 +8,6 @@ import type {
|
|||
import { getSocketStatus } from '../shims/socketStatus';
|
||||
import * as log from '../logging/log';
|
||||
import { SECOND } from '../util/durations';
|
||||
import { SocketStatus } from '../types/SocketStatus';
|
||||
|
||||
type NetworkActions = {
|
||||
checkNetworkStatus: (x: CheckNetworkStatusPayloadType) => NetworkActionType;
|
||||
|
@ -23,12 +22,6 @@ export function initializeNetworkObserver(
|
|||
const refresh = () => {
|
||||
const socketStatus = getSocketStatus();
|
||||
|
||||
if (socketStatus === SocketStatus.CLOSED) {
|
||||
// If we couldn't connect during startup - we should still switch SQL to
|
||||
// the main process to avoid stalling UI.
|
||||
void window.Signal.Data.goBackToMainProcess();
|
||||
}
|
||||
|
||||
networkActions.checkNetworkStatus({
|
||||
isOnline: navigator.onLine,
|
||||
socketStatus,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue