We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c93d24d commit 654b215Copy full SHA for 654b215
mautrix/util/program.py
@@ -214,6 +214,7 @@ def _run(self) -> None:
214
signal.signal(signal.SIGINT, signal.default_int_handler)
215
signal.signal(signal.SIGTERM, signal.default_int_handler)
216
217
+ self._stop_task = self.loop.create_future()
218
exit_code = 0
219
try:
220
self.log.debug("Running startup actions...")
@@ -224,7 +225,6 @@ def _run(self) -> None:
224
225
f"Startup actions complete in {round(end_ts - start_ts, 2)} seconds, "
226
"now running forever"
227
)
- self._stop_task = self.loop.create_future()
228
exit_code = self.loop.run_until_complete(self._stop_task)
229
self.log.debug("manual_stop() called, stopping...")
230
except KeyboardInterrupt:
0 commit comments