rpcc::bind(TO to)
{
int r;
- int ret = call(rpc_const::bind, 0, r, to);
+ int ret = call_timeout(rpc_const::bind, to, r, 0);
if(ret == 0){
lock ml(m_);
bind_done_ = true;
djob_t *j = new djob_t(c, b, sz);
c->incref();
- bool succ = dispatchpool_->addObjJob(this, &rpcs::dispatch, j);
+ bool succ = dispatchpool_->addJob(std::bind(&rpcs::dispatch, this, j));
if(!succ || !reachable_){
c->decref();
delete j;