File tree 1 file changed +8
-8
lines changed 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -472,14 +472,6 @@ void shard_connection::process_response(void)
472
472
473
473
fill_pipeline ();
474
474
475
- // update events
476
- if (m_bev != NULL ) {
477
- // no pending response (nothing to read) and output buffer empty (nothing to write)
478
- if ((m_pending_resp == 0 ) && (evbuffer_get_length (bufferevent_get_output (m_bev)) == 0 )) {
479
- bufferevent_disable (m_bev, EV_WRITE|EV_READ);
480
- }
481
- }
482
-
483
475
if (m_conns_manager->finished ()) {
484
476
m_conns_manager->set_end_time ();
485
477
}
@@ -508,6 +500,14 @@ void shard_connection::fill_pipeline(void)
508
500
// client manage requests logic
509
501
m_conns_manager->create_request (now, m_id);
510
502
}
503
+
504
+ // update events
505
+ if (m_bev != NULL ) {
506
+ // no pending response (nothing to read) and output buffer empty (nothing to write)
507
+ if ((m_pending_resp == 0 ) && (evbuffer_get_length (bufferevent_get_output (m_bev)) == 0 )) {
508
+ bufferevent_disable (m_bev, EV_WRITE|EV_READ);
509
+ }
510
+ }
511
511
}
512
512
513
513
void shard_connection::handle_event (short events)
You can’t perform that action at this time.
0 commit comments