/* waitChan puts an empty struct in wc when c's Wait method returns. */ func waitChan(c ssh.Conn, wc chan<- struct{}) { c.Wait() wc <- struct{}{} }