Subversion Repositories HomeAutomation

Rev

Rev 1608 | Rev 1959 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed

Rev 1608 Rev 1939
Line 84... Line 84...
84
{
84
{
85
}
85
}
86
 
86
 
87
void Client::Disconnect()
87
void Client::Disconnect()
88
{
88
{
89
    if (this->id_ != 0)
89
  if (this->id_ != 0)
-
 
90
  {
-
 
91
    ClientId id = this->id_;
90
    {
92
     
91
        this->Stop();
93
    this->Stop();
92
        this->signal_on_new_state_(this->id_, this->server_id_, CLIENT_STATE_DISCONNECTED);
-
 
93
 
94
       
94
        this->id_ = 0;
95
    this->id_ = 0;
-
 
96
       
-
 
97
    this->signal_on_new_state_(id, this->server_id_, CLIENT_STATE_DISCONNECTED);
95
    }
98
  }
96
}
99
}
97
   
100
   
98
}; // namespace net
101
}; // namespace net
99
}; // namespace atom
102
}; // namespace atom