lndc: fix bug, return error instead of nil on accept error

This commit is contained in:
Olaoluwa Osuntokun committed 2016-03-22 18:47:26 -07:00
1 parent 78c6053ba6
commit 27fee0e7d3
1 file changed
+1 -1
+1 -1
View File
@@ -40,7 +40,7 @@ func NewListener(localPriv *btcec.PrivateKey, listenAddr string) (*Listener, err
func (l *Listener) Accept() (c net.Conn, err error) {
conn, err := l.tcp.Accept()
if err != nil {
return nil, nil
return nil, err
}
lndc := NewConn(conn)