File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -2397,6 +2397,9 @@ void
2397
2397
fil_crypt_threads_cleanup ()
2398
2398
/* =======================*/
2399
2399
{
2400
+ if (!fil_crypt_threads_inited) {
2401
+ return ;
2402
+ }
2400
2403
os_event_destroy (fil_crypt_event);
2401
2404
os_event_destroy (fil_crypt_threads_event);
2402
2405
mutex_free (&fil_crypt_threads_mutex);
Original file line number Diff line number Diff line change @@ -2465,8 +2465,9 @@ void
2465
2465
fil_crypt_threads_end ()
2466
2466
/* ===================*/
2467
2467
{
2468
- /* stop threads */
2469
- fil_crypt_set_thread_cnt (0 );
2468
+ if (fil_crypt_threads_inited) {
2469
+ fil_crypt_set_thread_cnt (0 );
2470
+ }
2470
2471
}
2471
2472
2472
2473
/* ********************************************************************
@@ -2476,6 +2477,9 @@ void
2476
2477
fil_crypt_threads_cleanup ()
2477
2478
/* =======================*/
2478
2479
{
2480
+ if (!fil_crypt_threads_inited) {
2481
+ return ;
2482
+ }
2479
2483
os_event_free (fil_crypt_event);
2480
2484
os_event_free (fil_crypt_threads_event);
2481
2485
mutex_free (&fil_crypt_threads_mutex);
You can’t perform that action at this time.
0 commit comments