Skip to content

Commit

Permalink
NodeManager: Use boolean expression
Browse files Browse the repository at this point in the history
  • Loading branch information
Numerio committed Apr 3, 2016
1 parent 1199f32 commit 77c6944
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/servers/media/NodeManager.cpp
Expand Up @@ -161,7 +161,7 @@ NodeManager::RegisterNode(media_addon_id addOnID, int32 flavorID,
node.creator = -1; // will be set later
node.ref_count = 1;

if (node.kinds & B_TIME_SOURCE
if ((node.kinds & B_TIME_SOURCE) != 0
&& strcmp(node.name, "System clock") == 0) {
// This may happen when media_addon_server crash,
// we will replace the old timesource.
Expand Down

0 comments on commit 77c6944

Please sign in to comment.