Solve a deadlock on send