mirror of
https://github.com/markqvist/Reticulum.git
synced 2025-06-19 12:14:09 -04:00
Changed profiler to context manager
This commit is contained in:
parent
1e1b9dc79e
commit
b724836d2b
2 changed files with 84 additions and 76 deletions
|
@ -162,8 +162,8 @@ class Reticulum:
|
|||
RNS.Transport.exit_handler()
|
||||
RNS.Identity.exit_handler()
|
||||
|
||||
if RNS.profiler_ran:
|
||||
RNS.profiler_results()
|
||||
if RNS.Profiler.ran():
|
||||
RNS.Profiler.results()
|
||||
|
||||
@staticmethod
|
||||
def sigint_handler(signal, frame):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue