C++ベースのLightweightなHTTPサーバー
| Revision | ca54241524e81a5b05232c64f7d7d8b8cd4ec04e (tree) |
|---|---|
| Time | 2013-11-26 00:14:12 |
| Author | Michio Hirai <smg_ykz@user...> |
| Commiter | Michio Hirai |
[BugFix] Forgot to add dtor code (where it has to have a statement to do event_.delHandlerRead() ).
| @@ -15,6 +15,11 @@ HttpSocketManager::HttpSocketManager(const char_t* address, ushort port_number) | ||
| 15 | 15 | event_.addHandlerRead(*this, &HttpSocketManager::handleAccept, server_socket_); |
| 16 | 16 | } |
| 17 | 17 | |
| 18 | +HttpSocketManager::~HttpSocketManager() | |
| 19 | +{ | |
| 20 | + event_.delHandlerRead(server_socket_); | |
| 21 | +} | |
| 22 | + | |
| 18 | 23 | bool HttpSocketManager::handleAccept(cm::SocketServer& server_sock) |
| 19 | 24 | { |
| 20 | 25 | mt::AutoPtr<cm::SocketIf> socket = server_sock.accept(); |