Get rid of Client's sender goroutine.

This commit is contained in:
Mikkel Krautz 2011-11-11 21:08:32 +01:00
parent fa3770bffb
commit 875cc89b9e
4 changed files with 62 additions and 111 deletions

View file

@ -45,6 +45,7 @@ func MessageType(msg interface{}) uint16 {
case *Version:
return MessageVersion
case *UDPTunnel:
case []byte:
return MessageUDPTunnel
case *Authenticate:
return MessageAuthenticate
@ -94,4 +95,4 @@ func MessageType(msg interface{}) uint16 {
return MessageServerConfig
}
panic("unknown type")
}
}