merging some bugfixes #163

已合并
sarah 2018-11-22 01:05:24 +00:00 将 1 次代码提交从 bigmerge 合并至 master
管理员

we need to be able to set the AIF before launching individual peers, so this splits that out

we need to be able to set the AIF before launching individual peers, so this splits that out
普通成员
Drone Build Status: failure https://build.openprivacy.ca/cwtch.im/cwtch/278
普通成员
Drone Build Status: success https://build.openprivacy.ca/cwtch.im/cwtch/280
sarah "于 2018-11-22 01:05:23 +00:00 关闭此合并请求 "
管理员

i did away with startPeer in app
Listen now does the go function thing, so you can call peer.Listen directly and itll fork

i did away with startPeer in app Listen now does the go function thing, so you can call peer.Listen directly and itll fork
管理员

so yeah
lines 113-114

 		p.Init(app.mn)
 		p.Listen()

start and launch the peer. I got rid of app.startPeer cus its wrong and terrible

to be fair, LaunchPeers will basically nop
because
.Listen go calls .listenFn inside a look to handle socket fails
and you added cp.started = true inside listenFn
so LaunchPeers should always find them all started already

so yeah lines 113-114 ``` p.Init(app.mn) p.Listen() ``` start and launch the peer. I got rid of app.startPeer cus its wrong and terrible to be fair, LaunchPeers will basically nop because .Listen go calls .listenFn inside a look to handle socket fails and you added `cp.started = true` inside listenFn so LaunchPeers should always find them all `started` already
登录 并参与到对话中。
没有提供说明。