summaryrefslogtreecommitdiffstats
path: root/src/add-ons/kernel/network/stack/utility.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/add-ons/kernel/network/stack/utility.cpp')
-rw-r--r--src/add-ons/kernel/network/stack/utility.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/add-ons/kernel/network/stack/utility.cpp b/src/add-ons/kernel/network/stack/utility.cpp
index f31656d..c0ab7af 100644
--- a/src/add-ons/kernel/network/stack/utility.cpp
+++ b/src/add-ons/kernel/network/stack/utility.cpp
@@ -681,13 +681,14 @@ void
uninit_timers(void)
{
delete_sem(sTimerWaitSem);
- mutex_lock(&sTimerLock);
-
- mutex_destroy(&sTimerLock);
status_t status;
wait_for_thread(sTimerThread, &status);
+ mutex_lock(&sTimerLock);
+
+ mutex_destroy(&sTimerLock);
+
remove_debugger_command("net_timer", dump_timer);
}