We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e11b04 commit c1998aeCopy full SHA for c1998ae
websocket-rails-client/event.cpp
@@ -75,9 +75,11 @@ std::string Event::serialize() {
75
76
void Event::runCallbacks(bool success, jsonxx::Object event_data) {
77
if(success) {
78
- this->success_callback(event_data);
+ if(this->success_callback)
79
+ this->success_callback(event_data);
80
} else {
- this->failure_callback(event_data);
81
+ if(this->failure_callback)
82
+ this->failure_callback(event_data);
83
}
84
85
0 commit comments