mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-23 00:01:36 +00:00
Trigger "start" when scripts are reloaded.
This commit is contained in:
parent
5f23d4f5ca
commit
91e9016ce5
@ -131,6 +131,7 @@ class Script:
|
||||
self.should_reload.clear()
|
||||
ctx.log.info("Reloading script: %s" % self.name)
|
||||
self.ns = load_script(self.path, self.args)
|
||||
self.start()
|
||||
self.configure(self.last_options)
|
||||
else:
|
||||
self.run("tick")
|
||||
|
Loading…
Reference in New Issue
Block a user