gql_cataclysm
noah metz 2023-07-31 18:43:17 -06:00
parent b06c741ee3
commit 059c36663b
1 changed files with 10 additions and 2 deletions

@ -911,12 +911,20 @@ func NewGQLExtContext() *GQLExtContext {
return nil, err return nil, err
} }
err = ctx.Context.Send(ctx.User, ctx.Server.ID, StringSignal{NewDirectSignal(GQLStateSignalType), "stop_server"}) sig := StringSignal{NewDirectSignal(GQLStateSignalType), "stop_server"}
err = ctx.Context.Send(ctx.User, ctx.Server.ID, sig)
if err != nil { if err != nil {
return nil, err return nil, err
} }
return "stop_sent", nil resp, err := WaitForResult(ctx.Chan, 100*time.Millisecond, sig.ID())
if err != nil {
return nil, err
}
ser, err := resp.Serialize()
return string(ser), err
}, },
}) })