This commit is contained in:
Drew Ansbacher
2021-09-16 12:23:37 -06:00
committed by Aiden McClelland
parent 3ebb8da7a9
commit f6d39359bc

View File

@@ -46,11 +46,11 @@ export class ConfigService {
}
usePoll (): boolean {
return this.supportsWebSockets || (mocks.enabled && mocks.connection === 'poll')
return !this.supportsWebSockets || (mocks.enabled && mocks.connection === 'poll')
}
isLaunchable (state: PackageState, status: PackageMainStatus, interfaces: { [id: string]: InterfaceDef }): boolean {
if (this.supportsWebSockets || state !== PackageState.Installed) {
if (state !== PackageState.Installed) {
return false
}