diff options
author | Dan Gudmundsson <dgud@erlang.org> | 2010-11-04 09:06:15 +0100 |
---|---|---|
committer | Dan Gudmundsson <dgud@erlang.org> | 2010-11-04 09:06:15 +0100 |
commit | 78348da9028eca200641a27ed1ce88c9f8dd10d2 (patch) | |
tree | f62e92fff44a286a3f66e0d3f13c7d4c321653c7 /lib | |
parent | f8ac585a7ba8b2d35bc24c6d7c2fa5d5df1e2f6e (diff) | |
download | otp-78348da9028eca200641a27ed1ce88c9f8dd10d2.tar.gz otp-78348da9028eca200641a27ed1ce88c9f8dd10d2.tar.bz2 otp-78348da9028eca200641a27ed1ce88c9f8dd10d2.zip |
Avoid eternal loops when quiting
Caused an eternal loop and crash if an event was sent when stopping erlang.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/wx/c_src/wxe_return.cpp | 3 |
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; } |