Fix #264. Not emitting event 'basicQosOk'.

Fixes #264.