diff options
| author | Damien George | 2018-05-31 23:11:08 +1000 |
|---|---|---|
| committer | Damien George | 2018-06-12 11:56:25 +1000 |
| commit | b2fa1b50edaea43007d692d24391c6f3aa4d15ca (patch) | |
| tree | a048c894df68b3db11ca6140aed6ec79fae5795e /ports/stm32/main.c | |
| parent | 522ea80f06a80fd799bd57de351373ceaeeae325 (diff) | |
ports: Call gc_sweep_all() when doing a soft reset.
This calls finalisers of things like files and sockets to cleanly close
them.
Diffstat (limited to 'ports/stm32/main.c')
| -rw-r--r-- | ports/stm32/main.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ports/stm32/main.c b/ports/stm32/main.c index 19c77453f..c018d2de2 100644 --- a/ports/stm32/main.c +++ b/ports/stm32/main.c @@ -756,5 +756,7 @@ soft_reset_exit: pyb_thread_deinit(); #endif + gc_sweep_all(); + goto soft_reset; } |
