| 87 | uint16_t getPort() const { return port_; } |
| 88 | |
| 89 | ~ServerThread() { |
| 90 | if (running_) { |
| 91 | try { |
| 92 | stop(); |
| 93 | } catch (...) { |
| 94 | TOutput::instance().printf("error shutting down server"); |
| 95 | } |
| 96 | } |
| 97 | } |
| 98 | |
| 99 | protected: |
| 100 | // Annoying. thrift forces us to use shared_ptr, so we have to use |