We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 1c02aaf + e42e278 commit 9dc948fCopy full SHA for 9dc948f
2 files changed
Documentation/examples/callbackcomms.py
@@ -13,6 +13,7 @@ def c():
13
14
def m():
15
map(lambda msg: msg.trace(), comms.fetch() )
16
+ return True
17
18
def main():
19
pyMOOS.cpp
@@ -85,13 +85,17 @@ class AsyncCommsWrapper : public MOOS::MOOSAsyncCommClient {
85
}
86
87
bool Close(bool nice){
88
+ bool bResult = false;
89
+
90
Py_BEGIN_ALLOW_THREADS
91
//PyGILState_STATE gstate = PyGILState_Ensure();
92
closing_ = true;
- BASE::Close(true);
93
+ bResult = BASE::Close(true);
94
95
//PyGILState_Release(gstate);
96
Py_END_ALLOW_THREADS
97
98
+ return bResult;
99
100
101
@@ -397,5 +401,4 @@ BOOST_PYTHON_MODULE(pymoos)
397
401
398
402
bp::register_exception_translator<pyMOOSException>(&MOOSExceptionTranslator);
399
403
400
-}
-
404
+}
0 commit comments