mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-18 14:23:51 +02:00
Only compress PNG when needed, instance-queue-left
This commit is contained in:
@@ -5227,6 +5227,11 @@ speechSynthesis.getVoices();
|
||||
$app.instanceQueueReady(instanceId);
|
||||
break;
|
||||
|
||||
case 'instance-queue-left':
|
||||
console.log('instance-queue-left', content);
|
||||
$app.instanceQueueClear();
|
||||
break;
|
||||
|
||||
case 'content-refresh':
|
||||
var contentType = content.contentType;
|
||||
console.log('content-refresh', content);
|
||||
@@ -29003,16 +29008,13 @@ speechSynthesis.getVoices();
|
||||
// workerTimers.setTimeout(this.instanceQueueTimeout, 3600000);
|
||||
};
|
||||
|
||||
// $app.methods.instanceQueueTimeout = function () {
|
||||
// // remove instance from queue after 1hour of inactivity
|
||||
// API.queuedInstances.forEach((ref) => {
|
||||
// // 59mins
|
||||
// if (Date.now() - ref.updatedAt > 3540000) {
|
||||
// ref.$msgBox.close();
|
||||
// API.queuedInstances.delete(ref.location);
|
||||
// }
|
||||
// });
|
||||
// };
|
||||
$app.methods.instanceQueueClear = function () {
|
||||
// remove all instances from queue
|
||||
API.queuedInstances.forEach((ref) => {
|
||||
ref.$msgBox.close();
|
||||
API.queuedInstances.delete(ref.location);
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* @param {{ groupId: string }} params
|
||||
|
||||
Reference in New Issue
Block a user