The team watching mechanism now works as intended.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13892 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2005-08-03 16:57:40 +00:00
parent 1903443af7
commit 0d299e8a4b
1 changed files with 3 additions and 0 deletions

View File

@ -1672,6 +1672,9 @@ start_watching_team(team_id teamID, void (*hook)(team_id, void *), void *data)
if (watcher == NULL)
return B_NO_MEMORY;
watcher->hook = hook;
watcher->data = data;
// find team and add watcher
state = disable_interrupts();