I have 2 apps connected via bt using sockets over L2CAP.
when the server receives a buffer that means end of data transfer, i call the following:
and app shuts down! if i wait a short time ( that the client disconnects and bt connection icon disappears from both phones) then i can close and no crashes.
thanks a lot