Tweaked callbacks to prevent race condition (https://github.com/libevent/libevent/issues/104)
Tweaked callbacks to prevent race condition (https://github.com/libevent/libevent/issues/104)
bufferevent_pair: don't call downcast(NULL)
Merge remote-tracking branch 'origin/patches-2.0'