abortTransfer method
void
abortTransfer()
Implementation
void abortTransfer() async {
if (transferInProgress) {
transferInProgress = false;
dataSocket?.destroy(); // Forcefully close the data socket
sendResponse('426 Transfer aborted');
dataSocket = null;
} else {
sendResponse('226 No transfer in progress');
}
}