Rev 1599 | Rev 1607 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 1599 | Rev 1606 | ||
|---|---|---|---|
| Line 92... | Line 92... | ||
| 92 | type::Byteset buffer(1); |
92 | type::Byteset buffer(1); |
| 93 | buffer[0] = PACKET_PING; |
93 | buffer[0] = PACKET_PING; |
| 94 | 94 | ||
| 95 | net::Manager::Instance()->SendTo(this->client_id_, buffer); |
95 | net::Manager::Instance()->SendTo(this->client_id_, buffer); |
| 96 | } |
96 | } |
| 97 | catch (std:: |
97 | catch (std::runtime_error& e) |
| 98 | { |
98 | { |
| 99 | LOG.Error(e.what()); |
99 | LOG.Error(e.what()); |
| 100 | } |
100 | } |
| 101 | } |
101 | } |
| 102 | 102 | ||
| Line 293... | Line 293... | ||
| 293 | LOG.Info("Connected again."); |
293 | LOG.Info("Connected again."); |
| 294 | 294 | ||
| 295 | timer::Manager::Instance()->Cancel(timer_id); |
295 | timer::Manager::Instance()->Cancel(timer_id); |
| 296 | this->timer_id_ = 0; |
296 | this->timer_id_ = 0; |
| 297 | } |
297 | } |
| 298 | catch (std:: |
298 | catch (std::runtime_error& e) |
| 299 | { |
299 | { |
| 300 | LOG.Error(e.what()); |
300 | LOG.Error(e.what()); |
| 301 | LOG.Warning("Will try again soon..."); |
301 | LOG.Warning("Will try again soon..."); |
| 302 | } |
302 | } |
| 303 | } |
303 | } |