Guest User

Untitled

a guest
Aug 21st, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. diff --git a/Client/World/Network/WorldSocket.cs b/Client/World/Network/WorldSocket.cs
  2. index 6c3df10..0d6cbd8 100644
  3. --- a/Client/World/Network/WorldSocket.cs
  4. +++ b/Client/World/Network/WorldSocket.cs
  5. @@ -8,6 +8,7 @@ using Client.Authentication;
  6. using Client.UI;
  7. using Client.Chat;
  8. using Client.Chat.Definitions;
  9. +using System.Diagnostics;
  10.  
  11. namespace Client.World.Network
  12. {
  13. @@ -74,6 +75,14 @@ namespace Client.World.Network
  14.  
  15. private void BeginRead(AsyncCallback callback, object state = null)
  16. {
  17. + var caller = new StackTrace(1, true).GetFrame(0);
  18. + Game.UI.LogLine
  19. + (
  20. + string.Format("BeginRead @{0} for {1} bytes, callback {2}, from {3}:{4}",
  21. + Index, Remaining, callback.Method.Name, caller.GetFileName(), caller.GetFileLineNumber()),
  22. + LogLevel.Debug
  23. + );
  24. +
  25. this.connection.Client.BeginReceive
  26. (
  27. ReceiveData, Index, Remaining,
Add Comment
Please, Sign In to add comment