privatize session.run

ref #60
This commit is contained in:
Lucas Clemente
2016-05-15 18:49:09 +02:00
parent 2fb42afc8a
commit a10d58c8ca
5 changed files with 14 additions and 14 deletions

View File

@@ -126,8 +126,8 @@ func newSession(conn connection, v protocol.VersionNumber, connectionID protocol
return session
}
// Run the session main loop
func (s *Session) Run() {
// run the session main loop
func (s *Session) run() {
for {
// Close immediately if requested
select {