[asterisk-scf-commits] asterisk-scf/integration/routing.git branch "master" updated.

Commits to the Asterisk SCF project code repositories asterisk-scf-commits at lists.digium.com
Mon Sep 13 10:30:24 CDT 2010


branch "master" has been updated
       via  b3e4d621703e5cfe15a0cb2dc879595e6b802d5d (commit)
      from  064e62fc02c5552d1b0d815aec1bc7e07f76693b (commit)

Summary of changes:
 src/BasicRoutingServiceApp.cpp |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)


- Log -----------------------------------------------------------------
commit b3e4d621703e5cfe15a0cb2dc879595e6b802d5d
Author: Joshua Colp <jcolp at digium.com>
Date:   Mon Sep 13 12:36:58 2010 -0300

    Fix a bug where the interruptCallback function was not getting called upon shutting down.

diff --git a/src/BasicRoutingServiceApp.cpp b/src/BasicRoutingServiceApp.cpp
index 825d5b4..89756f0 100644
--- a/src/BasicRoutingServiceApp.cpp
+++ b/src/BasicRoutingServiceApp.cpp
@@ -317,6 +317,8 @@ void BasicRoutingServiceApp::initialize(const std::string appName)
  */
 int BasicRoutingServiceApp::run(int argc, char* argv[])
 {
+	callbackOnInterrupt();
+
    // Initialize this component.
    initialize(argv[0]);
 
@@ -340,7 +342,6 @@ static BasicRoutingServiceApp app;
 // Application entry point. 
 int main(int argc, char* argv[])
 {
-	 app.callbackOnInterrupt();
-    return app.main(argc, argv);
+	return app.main(argc, argv);
 }
 

-----------------------------------------------------------------------


-- 
asterisk-scf/integration/routing.git



More information about the asterisk-scf-commits mailing list