diff --git a/src/kits/app/Looper.cpp b/src/kits/app/Looper.cpp index 23ed502940..9100006c1f 100644 --- a/src/kits/app/Looper.cpp +++ b/src/kits/app/Looper.cpp @@ -456,6 +456,7 @@ BLooper::Run() if (fRunCalled) { // Not allowed to call Run() more than once debugger("can't call BLooper::Run twice!"); + return fTaskID; } fTaskID = spawn_thread(_task0_, Name(), fInitPriority, this);