diff --git a/src/dispatcher/server.tsx b/src/dispatcher/server.tsx index 140476d18..569ec9d6c 100644 --- a/src/dispatcher/server.tsx +++ b/src/dispatcher/server.tsx @@ -23,13 +23,6 @@ export default (store: Store, logger: Logger) => { type: 'NEW_CLIENT', payload: client, }); - // Wait 2 seconds, and then trigger another event so we can check it's displayed - setTimeout(() => { - store.dispatch({ - type: 'NEW_CLIENT_SANITY_CHECK', - payload: client, - }); - }, 2000); }); server.addListener('removed-client', (id: string) => { diff --git a/src/reducers/connections.tsx b/src/reducers/connections.tsx index bb2257ab5..9cabd1136 100644 --- a/src/reducers/connections.tsx +++ b/src/reducers/connections.tsx @@ -103,10 +103,6 @@ export type Action = type: 'NEW_CLIENT'; payload: Client; } - | { - type: 'NEW_CLIENT_SANITY_CHECK'; - payload: Client; - } | { type: 'CLIENT_REMOVED'; payload: string; @@ -293,25 +289,6 @@ const reducer = (state: State = INITAL_STATE, action: Actions): State => { }); } - case 'NEW_CLIENT_SANITY_CHECK': { - const {payload} = action; - // Check for clients initialised when there is no matching device - const clientIsStillConnected = state.clients.filter( - client => client.id == payload.query.device_id, - ); - if (clientIsStillConnected) { - const matchingDeviceForClient = state.devices.filter( - device => payload.query.device_id === device.serial, - ); - if (matchingDeviceForClient.length === 0) { - console.error( - `Client initialised for non-displayed device: ${payload.id}`, - ); - } - } - return state; - } - case 'CLIENT_REMOVED': { const {payload} = action; return updateSelection({