HC-06 bluetooth module stop reading data after a period of time

Hello,
I am using an HC-06 Bluetooth module to receive data from a windows application.
Although the connection is establishing correctly , after a few seconds the softwarserial stops receiving data . does anbody has an idea?

here is the code
///////////////////////////////////////

#include <Boards.h>

#include <SoftwareSerial.h> //Software Serial Port
#define RxD 8 // This is the pin that the Bluetooth (BT_TX) will transmit to the Arduino (RxD)
#define TxD 7 // This is the pin that the Bluetooth (BT_RX) will receive from the Arduino (TxD)
int c;
SoftwareSerial blueToothSerial(RxD,TxD);
boolean light = false;
void setup(){
//Firmata.begin(9600);
blueToothSerial.begin(9600);
//Serial.begin(9600); // Allow Serial communication via USB cable to computer (if required)
pinMode(RxD, INPUT); // Setup the Arduino to receive INPUT from the bluetooth shield on Digital Pin 6
pinMode(TxD, OUTPUT); // Setup the Arduino to send data (OUTPUT) to the bluetooth shield on Digital Pin 7
digitalWrite(13,LOW);
pinMode(13,OUTPUT); // Use onboard LED if required.
}

void loop(){
if(blueToothSerial.available()){
c=blueToothSerial.read();
//Serial.println(blueToothSerial.available());
//blueToothSerial.write("Im alive");
if(c== 1 ){
//Serial.write(blueToothSerial.read());

digitalWrite(13,HIGH);
}
if(c==2){digitalWrite(13,LOW);
}
}
delay(20);

}