summaryrefslogtreecommitdiffstats
path: root/libsoundmanager/libsoundmanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libsoundmanager/libsoundmanager.cpp')
-rw-r--r--libsoundmanager/libsoundmanager.cpp26
1 files changed, 0 insertions, 26 deletions
diff --git a/libsoundmanager/libsoundmanager.cpp b/libsoundmanager/libsoundmanager.cpp
index c7caa7f..8ee5303 100644
--- a/libsoundmanager/libsoundmanager.cpp
+++ b/libsoundmanager/libsoundmanager.cpp
@@ -148,11 +148,6 @@ int LibSoundmanager::init(int port, const string& token)
ELOG("Failed to initialize websocket");
return -1;
}
- ret = run_eventloop();
- if(ret == -1){
- ELOG("Failed to create thread");
- return -1;
- }
return 0;
}
@@ -227,27 +222,6 @@ void LibSoundmanager::register_callback(
onHangup = hangup_cb;
}
-int LibSoundmanager::run_eventloop()
-{
- if(mploop && sp_websock)
- {
- pthread_t thread_id;
- int ret = pthread_create(&thread_id, NULL, event_loop_run, mploop);
- if(ret != 0)
- {
- ELOG("Cannot run eventloop due to error:%d", errno);
- return -1;
- }
- else
- return 0;
- }
- else
- {
- ELOG("Connecting is not established yet");
- return -1;
- }
-}
-
/**
* This function calls registerSource of Audio Manager via WebSocket
* registerSource is registration as source for policy management