From: Stefan Bund Date: Sun, 16 Jan 2011 20:47:12 +0000 (+0100) Subject: call init.py/shutdown on application close X-Git-Url: http://g0dil.de/git?p=pykit.git;a=commitdiff_plain;h=54ec4659a83eb64b86ed060c9a1e13069c59d7a5 call init.py/shutdown on application close --- diff --git a/PythonPublisher.cc b/PythonPublisher.cc index 410f707..c6ad1fc 100644 --- a/PythonPublisher.cc +++ b/PythonPublisher.cc @@ -459,7 +459,12 @@ prefix_ pykit::PythonPublisher::PythonPublisher() } prefix_ pykit::PythonPublisher::~PythonPublisher() -{} +{ + try { + impl_->mainNamespace["shutdown"](); + } + catch (...) {;} +} prefix_ void pykit::PythonPublisher::publish(Request & request) {