[bitshares/bitshares-core] construct websocket object until command line option is set (#1215)

This is not a «trivial code refine», it breaks things.
With the change, the *_server variables go out of scope at the end of the if-block, causing the destructor to be called, which leads to the listening socket being shut down.

https://en.wiktionary.org/wiki/if_it_ain%27t_broke,_don%27t_fix_it

Добавить комментарий