File tree 1 file changed +7
-5
lines changed
1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -105,15 +105,15 @@ public void run()
105
105
{
106
106
System .out .println ("Error enviando la señalización al servidor" );
107
107
e .printStackTrace ();
108
- //this.alive = false;
109
108
}
110
109
111
110
112
111
if (finishFlag == 1 )
113
112
{
114
113
// Terminar todo el hilo adecuadamente (cerrar la conexión)
115
114
System .out .println ("Cerrando la conexión" );
116
- //this.alive = false;
115
+ this .alive = false ;
116
+ break ;
117
117
}
118
118
else if (dataFlag == 1 )
119
119
{
@@ -131,7 +131,7 @@ else if(dataFlag == 1)
131
131
{
132
132
System .out .println ("Error enviando valores de setpoint" );
133
133
e .printStackTrace ();
134
- //this.alive = false ;
134
+ break ;
135
135
}
136
136
}
137
137
dataFlag = 0 ;
@@ -150,15 +150,17 @@ else if(dataFlag == 1)
150
150
{
151
151
System .out .println ("No se pudo hacer la lectura de la señal o la transferencia del finish" );
152
152
e .printStackTrace ();
153
+ break ;
153
154
//this.alive = false;
154
155
}
155
156
}
156
157
//System.out.println("u_temp="+u_temp+" u_flow="+u_flow+" outemp="+out_temp+" outFlow="+out_flow+" time="+time_value);
157
158
// Actualizar gráficos con los nuevos valores
158
159
this .UpdateChart ();
159
160
}
160
- try
161
- {
161
+ this .alive = false ;
162
+ try
163
+ {
162
164
System .out .println ("Esperando para cerrar los sockets" );
163
165
Thread .sleep (4000 );
164
166
} catch (InterruptedException e1 )
You can’t perform that action at this time.
0 commit comments