summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@redhat.com>2013-02-27 18:41:44 +0100
committerChristophe Fergeau <cfergeau@redhat.com>2013-03-14 11:10:09 +0100
commit59a17d8b095f1e14e2ef2a32c09e3a969f1937cd (patch)
treef6f634627e9bc50e852b2832301ab2643c24d59c
parentdf2cbfac026d39552959f1421f4a1ecc9a4ebf91 (diff)
win support in generic controller cod
-rw-r--r--SpiceXPI/src/plugin/controller.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/SpiceXPI/src/plugin/controller.cpp b/SpiceXPI/src/plugin/controller.cpp
index ccef1d4..ac97ce1 100644
--- a/SpiceXPI/src/plugin/controller.cpp
+++ b/SpiceXPI/src/plugin/controller.cpp
@@ -97,6 +97,21 @@ int SpiceController::Connect(const int nRetries)
g_usleep(sleep_time * G_USEC_PER_SEC);
++sleep_time;
}
+ if (rc != 0) {
+ g_warning("error connecting");
+ g_assert(m_pipe == NULL);
+ }
+ if (!CheckPipe()) {
+ g_warning("Pipe validation failure");
+ g_warn_if_fail(m_pipe == NULL);
+ }
+ if (m_pipe == NULL) {
+ g_warning("failed to create pipe");
+#ifdef XP_WIN
+ rc = MAKE_HRESULT(1, FACILITY_CREATE_RED_PIPE, GetLastError());
+#endif
+ this->StopClient();
+ }
return rc;
}