Skip to content

Commit

Permalink
update proc bridge
Browse files Browse the repository at this point in the history
  • Loading branch information
CheatCod committed Jul 1, 2023
1 parent 6eb01a0 commit fff76d5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/implementations/generic/js/main/libs/procedure_bridge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ import { ProcedureCallResultInner } from "./bindings/ProcedureCallResultInner.ts

import { isTConfig, isTMacro, isTPlayer, isTServer } from "./utils.ts";
import { AtomInstance } from "./atom_instance.ts";
import { detach } from "https://raw.githubusercontent.com/Lodestone-Team/lodestone_core/dev/src/deno_ops/events/events.ts"
import { emitDetach } from "../../../../../deno_ops/events/events.ts"
import { getCurrentTaskPid } from "../../../../../deno_ops/prelude/prelude.ts";



Expand Down Expand Up @@ -226,7 +227,7 @@ async function tServerHandle(procedure: ProcedureCall, instance: AtomInstance) {
export async function procedure_bridge(instance: AtomInstance,) {
// This function will throw if it's called more than once.
ops.proc_bridge_ready();
detach();
emitDetach(getCurrentTaskPid());
while (true) {
const procedure: ProcedureCall = await core.opAsync("next_procedure");
const inner = procedure.inner;
Expand Down

0 comments on commit fff76d5

Please sign in to comment.