Remove unused `PT_NULL` and fix bug in `connect`
- Unused
PT_NULL
failed build for mac users and was removed - Fixed a bug with infinite loop, where it would not stop if there were no successful connections
Edited by Егор Ивков
PT_NULL
failed build for mac users and was removed