mirror of
https://github.com/stashapp/stash.git
synced 2025-12-18 04:44:37 +03:00
Plugin hooks (#1452)
* Refactor session and plugin code * Add context to job tasks * Show hooks in plugins page * Refactor session management
This commit is contained in:
@@ -70,12 +70,10 @@ func (t *rpcPluginTask) Start() error {
|
||||
Client: t.client,
|
||||
}
|
||||
|
||||
input := t.buildPluginInput()
|
||||
|
||||
t.done = make(chan *rpc.Call, 1)
|
||||
result := common.PluginOutput{}
|
||||
t.waitGroup.Add(1)
|
||||
iface.RunAsync(input, &result, t.done)
|
||||
iface.RunAsync(t.input, &result, t.done)
|
||||
go t.waitToFinish(&result)
|
||||
|
||||
t.started = true
|
||||
|
||||
Reference in New Issue
Block a user