applied patch by Maurice Kalinowski:
* BTimeSource now checks if it is about to add itself as a slave node and refuses to. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23867 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -499,6 +499,10 @@ BTimeSource::DirectAddMe(const media_node &node)
|
||||
ERROR("BTimeSource::DirectAddMe out of slave node slots\n");
|
||||
return;
|
||||
}
|
||||
if (fNodeID == node.node) {
|
||||
ERROR("BTimeSource::DirectAddMe should not add itself to slave nodes\n");
|
||||
return;
|
||||
}
|
||||
for (int i = 0; i < SLAVE_NODES_COUNT; i++) {
|
||||
if (fSlaveNodes->node_id[i] == 0) {
|
||||
fSlaveNodes->node_id[i] = node.node;
|
||||
|
||||
Reference in New Issue
Block a user