Explorar o código

FIX: client loopt niet meer vast

Bart Reedijk %!s(int64=10) %!d(string=hai) anos
pai
achega
7e0b6c4ba5
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      Proftaak Remote Healthcare/FietsClientV2/TCPConnection.cs

+ 2 - 1
Proftaak Remote Healthcare/FietsClientV2/TCPConnection.cs

@@ -72,10 +72,11 @@ namespace FietsClient
                                 }
                                 else if (response_parts[2] == "0" && response_parts[1] == "1")
                                 {
-                                    PatientForm patientForm = new PatientForm(this);
+                                    
                                     Form activeForm = Form.ActiveForm;
                                     activeForm.Invoke((MethodInvoker)delegate ()
                                     {
+                                        PatientForm patientForm = new PatientForm(this);
                                         activeForm.Hide();
                                         patientForm.Show();
                                     });