[0.3.88] release sockfd in case of err 20/173420/2
authorEunhae Choi <eunhae1.choi@samsung.com>
Wed, 21 Mar 2018 09:33:53 +0000 (18:33 +0900)
committerEunhae Choi <eunhae1.choi@samsung.com>
Wed, 21 Mar 2018 09:34:28 +0000 (18:34 +0900)
Change-Id: I518615d87e4594f9fc2aa355d082af7555c39ae9

packaging/capi-media-player.spec
src/player.c

index af50f7c51122bb8cdcc2285689e4fffad73112a5..aef3fe762b6303de4843ee65989409c4137d3a90 100644 (file)
@@ -1,6 +1,6 @@
 Name:       capi-media-player
 Summary:    A Media Player API
-Version:    0.3.87
+Version:    0.3.88
 Release:    0
 Group:      Multimedia/API
 License:    Apache-2.0
index cbc50af475e60e7d26c19135def97119e6774128..809be61ce66b23e0891c28f404804f00f97f3e51 100644 (file)
@@ -1809,7 +1809,10 @@ int player_create(player_h * player)
                                _player_event_queue_destroy(pc->cb_info);
                        callback_destroy(pc->cb_info);
                        pc->cb_info = NULL;
+               } else if (sock_fd > INVALID_DEFAULT_VALUE) {
+                       muse_client_close(sock_fd);
                }
+               sock_fd = INVALID_DEFAULT_VALUE;
                g_free(ret_buf);
                ret_buf = NULL;
                LOGE("ret value : %d, retry #%d", ret, CONNECTION_RETRY - retry_count);