aboutsummaryrefslogtreecommitdiffstats
path: root/lib/wx/c_src
diff options
context:
space:
mode:
authorDan Gudmundsson <[email protected]>2010-11-26 15:34:24 +0100
committerDan Gudmundsson <[email protected]>2010-11-26 15:34:24 +0100
commit7d64d49f19eb014188e0f3ff7cb3705255389f10 (patch)
treefd66f55cd4fd716e370cca57e07aed774916cb66 /lib/wx/c_src
parentdf277325374eb49198e907fd19854058c211bf3d (diff)
parent5e31685980cd1b2fa344b5c3be866ed74c0e9754 (diff)
downloadotp-7d64d49f19eb014188e0f3ff7cb3705255389f10.tar.gz
otp-7d64d49f19eb014188e0f3ff7cb3705255389f10.tar.bz2
otp-7d64d49f19eb014188e0f3ff7cb3705255389f10.zip
Merge branch 'dgud/wx/misc-bugs/OTP-8951' into dev
* dgud/wx/misc-bugs/OTP-8951: Add wxSystemSettings Avoid eternal loops when quiting
Diffstat (limited to 'lib/wx/c_src')
-rw-r--r--lib/wx/c_src/wxe_return.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/wx/c_src/wxe_return.cpp b/lib/wx/c_src/wxe_return.cpp
index 2c4f7541e7..9fd627829e 100644
--- a/lib/wx/c_src/wxe_return.cpp
+++ b/lib/wx/c_src/wxe_return.cpp
@@ -64,11 +64,14 @@ int wxeReturn::send() {
int res = driver_send_term(port, caller, rtData, rtLength);
driver_free(rtData);
+#ifdef DEBUG
if(res == -1) {
wxString msg;
msg.Printf(wxT("Failed to send return or event msg"));
send_msg("internal_error", &msg);
}
+#endif
+
reset();
return res;
}