THRIFT-1563 thrift: make serve() throw an exception if it fails
Patch: Dave Watson
git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1325026 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/lib/cpp/src/server/TThreadedServer.cpp b/lib/cpp/src/server/TThreadedServer.cpp
index 6b816a4..e99a909 100644
--- a/lib/cpp/src/server/TThreadedServer.cpp
+++ b/lib/cpp/src/server/TThreadedServer.cpp
@@ -139,14 +139,8 @@
shared_ptr<TProtocol> inputProtocol;
shared_ptr<TProtocol> outputProtocol;
- try {
- // Start the server listening
- serverTransport_->listen();
- } catch (TTransportException& ttx) {
- string errStr = string("TThreadedServer::run() listen(): ") +ttx.what();
- GlobalOutput(errStr.c_str());
- return;
- }
+ // Start the server listening
+ serverTransport_->listen();
// Run the preServe event
if (eventHandler_ != NULL) {