  		return false;
  	}
 diff --git a/beos/gui.cpp b/beos/gui.cpp
-index b275616..d951c6c 100644
+index b275616..c8ff5c2 100644
 --- a/beos/gui.cpp
 +++ b/beos/gui.cpp
 @@ -450,7 +450,6 @@ static void gui_init2(int argc, char** argv)

 #endif
 #endif
 
@@ -751,31 +749,6 @@ void gui_quit(void)
 }
 
 

 };
 
 
diff --git a/beos/schedule.cpp b/beos/schedule.cpp
index 3f82235..2499159 100644
--- a/beos/schedule.cpp
+++ b/beos/schedule.cpp
@@ -104,11 +104,12 @@ bool
 schedule_run(void)
 {
 	LOG(("schedule_run()"));
+
+	earliest_callback_timeout = B_INFINITE_TIMEOUT;
 	if (callbacks == NULL)
 		return false; /* Nothing to do */
 
 	bigtime_t now = system_time();
-	earliest_callback_timeout = B_INFINITE_TIMEOUT;
 	int32 i;
 
 	LOG(("Checking %ld callbacks to for deadline.", this_run->CountItems()));
diff --git a/beos/window.cpp b/beos/window.cpp
index 253b5d1..729d7b1 100644
--- a/beos/window.cpp
