Fixed issue #392

git-svn-id: http://red5.googlecode.com/svn/java/server/trunk@4639 1b6495e4-3631-0410-8e05-8f51eee8b9cc
Fixed a couple rare infinite loops. Fixed null connection on session close when using Mina.

git-svn-id: http://red5.googlecode.com/svn/java/server/trunk@4640 1b6495e4-3631-0410-8e05-8f51eee8b9cc
Fixed issue #362

git-svn-id: http://red5.googlecode.com/svn/java/server/trunk@4641 1b6495e4-3631-0410-8e05-8f51eee8b9cc
 - update script to r4639
Merge remote branch 'remotes/red5/trunk' into red5-r4641
 - build for r4641