Commit 20b613d8 authored by Giacomo Strangolino's avatar Giacomo Strangolino
Browse files

call superclass event

parent bfb28c55
......@@ -42,7 +42,7 @@ bool CaSupCurl::xmit(const std::map<std::string,std::string> &datamap) {
curl_easy_setopt(d->curl, CURLOPT_SSL_VERIFYPEER, d->ssl_verify_peer);
// suppress response to stdout
curl_easy_setopt(d->curl, CURLOPT_WRITEFUNCTION, CaSupCurl::write_callback);
CaSupCurlWriteFuncData *wd = new CaSupCurlWriteFuncData(this, std::to_string(cnt));
CaSupCurlWriteFuncData *wd = new CaSupCurlWriteFuncData(std::to_string(cnt));
curl_easy_setopt(d->curl, CURLOPT_WRITEDATA, (void *) &response );
CURLcode cuco = curl_easy_perform(d->curl);
......
......@@ -11,12 +11,10 @@ class CaSupCurl;
class CaSupCurlWriteFuncData {
public:
CaSupCurlWriteFuncData(CaSupCurl *thisp, const std::string& _chan) {
this_p = thisp;
CaSupCurlWriteFuncData(const std::string& _chan) {
chan = _chan;
}
CaSupCurl *this_p;
std::string chan;
int su_cnt;
};
......
......@@ -127,6 +127,8 @@ void CaSupDbMon::event(CuActivityEvent *e) {
CaSupDbFuncs dbf;
dbf.set_last_recover_successful(d->dbh, xe->success);
}
else
CuContinuousActivity::event(e);
printf(" [0x%lx ] CaSupDbMon.event exit\n", pthread_self());
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment