Skip to content

Commit

Permalink
Add missing lock in LocalNetworkGamer.receivedData
Browse files Browse the repository at this point in the history
  • Loading branch information
Therzok committed Sep 5, 2015
1 parent 5bb0e4d commit f1354fb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion MonoGame.Framework/Net/NetworkSession.cs
Expand Up @@ -763,7 +763,9 @@ private void ProcessSendData(CommandSendData command)
command.data);
crd.gamer = command.sender;
foreach(LocalNetworkGamer gamer in _localGamers) {
gamer.receivedData.Enqueue(crd);
lock (gamer.receivedData) {
gamer.receivedData.Enqueue(crd);
}
}
}

Expand Down

5 comments on commit f1354fb

@mgbot
Copy link
Member

@mgbot mgbot commented on f1354fb Sep 5, 2015

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TeamCity MonoGame :: Develop (Win) Build 3.5.0.576 is now running

@mgbot
Copy link
Member

@mgbot mgbot commented on f1354fb Sep 5, 2015

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TeamCity MonoGame :: Develop (Win) Build 3.5.0.576 outcome was FAILURE
Summary: Tests failed: 1 (1 new), passed: 538, ignored: 6 Build time: 00:21:47

Failed tests

MonoGameTests.exe: MonoGame.Tests.Visual.SpriteBatchTest.Draw_with_SpriteSortMode(Deferred): <no details avaliable>

@Therzok
Copy link
Contributor Author

@Therzok Therzok commented on f1354fb Sep 5, 2015

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, why would this fail?

@mgbot
Copy link
Member

@mgbot mgbot commented on f1354fb Sep 5, 2015

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TeamCity MonoGame :: Develop (Win) Build 3.5.0.579 is now running

@mgbot
Copy link
Member

@mgbot mgbot commented on f1354fb Sep 5, 2015

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TeamCity MonoGame :: Develop (Win) Build 3.5.0.579 outcome was SUCCESS
Summary: Tests passed: 539, ignored: 6 Build time: 00:24:08

Please sign in to comment.