Two fixes

This has the sp3 pathfinding fix and a fix for a crash when incoming connections are received immediately on startup.
@JoelKatz @rec