It is not a adb-connection-by-wifi what gets killed. It is just that USB enumerations affect the sys.usb.*
system properties which on many devices is causing restart of adbd
regardless whether it’s being used over USB
or tcpip
.
Do grep "stop adbd" /init*rc
to see what I mean.
You could either comment out those stop adbd
lines or just disconnect the USB cable before running your adb connect
command.