mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-13 00:23:02 -04:00
fix serialization and race cond
This commit is contained in:
parent
d188a93a6c
commit
c365c86a49
3 changed files with 18 additions and 27 deletions
|
@ -20,7 +20,6 @@ import { definePluginSettings } from "@api/Settings";
|
|||
import { Devs } from "@utils/constants";
|
||||
import { Logger } from "@utils/Logger";
|
||||
import definePlugin, { OptionType, ReporterTestable } from "@utils/types";
|
||||
import { reporterData } from "debug/reporterData";
|
||||
|
||||
import { initWs, socket, stopWs } from "./initWs";
|
||||
console.log("imported");
|
||||
|
@ -58,9 +57,9 @@ export default definePlugin({
|
|||
},
|
||||
|
||||
start() {
|
||||
console.log(123);
|
||||
console.log(reporterData);
|
||||
initWs();
|
||||
// if were running the reporter, we need to initws in the reporter file to avoid a race condition
|
||||
if (!IS_COMPANION_TEST)
|
||||
initWs();
|
||||
},
|
||||
|
||||
stop: stopWs,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue