Subversion Repositories HomeAutomation

Rev

Rev 1593 | Rev 1596 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed

Rev 1593 Rev 1595
Line 31... Line 31...
31
 
31
 
32
UdpClient::~UdpClient()
32
UdpClient::~UdpClient()
33
{
33
{
34
    if (this->socket_.use_count() != 0)
34
    if (this->socket_.use_count() != 0)
35
    {
35
    {
-
 
36
        this->socket_->cancel();
36
        this->socket_->close();
37
        this->socket_->close();
37
        this->socket_.reset();
38
        this->socket_.reset();
38
    }
39
    }
39
}
40
}
40
 
41
 
Line 60... Line 61...
60
 
61
 
61
void UdpClient::Disconnect()
62
void UdpClient::Disconnect()
62
{
63
{
63
    if (this->socket_.use_count() != 0)
64
    if (this->socket_.use_count() != 0)
64
    {
65
    {
-
 
66
        this->socket_->cancel();
65
        this->socket_->close();
67
        this->socket_->close();
66
        this->socket_.reset();
68
        this->socket_.reset();
67
    }
69
    }
68
   
70
   
69
    Client::Disconnect();
71
    Client::Disconnect();