完善了OnSessionChange()事件的代码

Signed-off-by: shines77 <gz_shines@msn.com>