Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- === modified file 'libcore/asobj/XMLSocket_as.cpp'
- --- libcore/asobj/XMLSocket_as.cpp 2009-05-18 08:52:25 +0000
- +++ libcore/asobj/XMLSocket_as.cpp 2009-05-18 13:38:51 +0000
- @@ -70,9 +70,13 @@
- _complete(false)
- {}
- + ~SocketConnection(){
- + delete _start;
- + }
- +
- /// Initiate a connection.
- void connect(const std::string& host, boost::uint16_t port) {
- - _start = boost::thread(
- + _start = new boost::thread(
- boost::bind(&SocketConnection::makeConnection, this, host, port));
- }
- @@ -188,7 +192,7 @@
- //
- /// This also cancels any connection attempt in progress.
- void close() {
- - _start.join();
- + _start->join();
- _socket.closeNet();
- // Reset for next connection.
- @@ -211,7 +215,7 @@
- std::string _remainder;
- - boost::thread _start;
- + boost::thread* _start;
- };
Add Comment
Please, Sign In to add comment