Guest User

Untitled

a guest
Jun 18th, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. === modified file 'libcore/asobj/XMLSocket_as.cpp'
  2. --- libcore/asobj/XMLSocket_as.cpp 2009-05-18 08:52:25 +0000
  3. +++ libcore/asobj/XMLSocket_as.cpp 2009-05-18 13:38:51 +0000
  4. @@ -70,9 +70,13 @@
  5. _complete(false)
  6. {}
  7.  
  8. + ~SocketConnection(){
  9. + delete _start;
  10. + }
  11. +
  12. /// Initiate a connection.
  13. void connect(const std::string& host, boost::uint16_t port) {
  14. - _start = boost::thread(
  15. + _start = new boost::thread(
  16. boost::bind(&SocketConnection::makeConnection, this, host, port));
  17. }
  18.  
  19. @@ -188,7 +192,7 @@
  20. //
  21. /// This also cancels any connection attempt in progress.
  22. void close() {
  23. - _start.join();
  24. + _start->join();
  25. _socket.closeNet();
  26.  
  27. // Reset for next connection.
  28. @@ -211,7 +215,7 @@
  29.  
  30. std::string _remainder;
  31.  
  32. - boost::thread _start;
  33. + boost::thread* _start;
  34.  
  35. };
Add Comment
Please, Sign In to add comment