Explorar o código

ssh: don't hang exiting sshd task

Sergey Alirzaev %!s(int64=5) %!d(string=hai) anos
pai
achega
53da1c7b6c
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      modules/SSH_Server/server.c

+ 1 - 0
modules/SSH_Server/server.c

@@ -398,6 +398,7 @@ static void ssh_server(void *arg)
 #if defined(HAVE_ECC) && defined(FP_ECC) && defined(HAVE_THREAD_LS)
     wc_ecc_fp_free();  /* free per thread cache */
 #endif
+    vTaskDelete(NULL);
 }
 
 void ssh_server_init(void)