lib/relay need not depend on lib/model any more

This commit is contained in:
Jakob Borg
2015-09-14 20:19:39 +02:00
parent 3d09090c4e
commit 7e3c06191e
2 changed files with 22 additions and 20 deletions

View File

@@ -394,7 +394,11 @@ func (s *connectionSvc) connect() {
func (s *connectionSvc) acceptRelayConns() {
for {
s.conns <- s.relaySvc.Accept()
conn := s.relaySvc.Accept()
s.conns <- model.IntermediateConnection{
Conn: conn,
Type: model.ConnectionTypeRelayAccept,
}
}
}