OSDN Git Service

カメラとの切断機能を追加してみる。
[gokigen/FujiCam.git] / app / src / main / java / net / osdn / gokigen / cameratest / fuji / Connection.java
index 0df760a..8f03b10 100644 (file)
@@ -157,8 +157,30 @@ public class Connection implements IFujiStatusRequest
     {
         try
         {
+            statusChecker.stop();
+        }
+        catch (Exception e)
+        {
+            e.printStackTrace();
+        }
+        try
+        {
             comm.stop_stream();
+        }
+        catch (Exception e)
+        {
+            e.printStackTrace();
+        }
+        try
+        {
             comm.stop_response();
+        }
+        catch (Exception e)
+        {
+            e.printStackTrace();
+        }
+        try
+        {
             comm.disconnect_socket();
         }
         catch (Exception e)