[pulseaudio-commits] r1324 - /trunk/src/pulse/context.c

svnmailer-noreply at 0pointer.de svnmailer-noreply at 0pointer.de
Tue Aug 22 08:36:40 PDT 2006


Author: ossman
Date: Tue Aug 22 17:36:37 2006
New Revision: 1324

URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=1324&root=pulseaudio&view=rev
Log:
Proceed with connect even when no cookie is loaded. Allows you to connect
to server which do not require a cookie under all circumstances.

Modified:
    trunk/src/pulse/context.c

Modified: trunk/src/pulse/context.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/pulse/context.c?rev=1324&root=pulseaudio&r1=1323&r2=1324&view=diff
==============================================================================
--- trunk/src/pulse/context.c (original)
+++ trunk/src/pulse/context.c Tue Aug 22 17:36:37 2006
@@ -434,10 +434,8 @@
     assert(!c->pdispatch);
     c->pdispatch = pa_pdispatch_new(c->mainloop, command_table, PA_COMMAND_MAX);
 
-    if (!c->conf->cookie_valid) {
-        pa_context_fail(c, PA_ERR_AUTHKEY);
-        goto finish;
-    }
+    if (!c->conf->cookie_valid)
+        pa_log_warn("No cookie loaded. Attempting to connect without.");
 
     t = pa_tagstruct_command(c, PA_COMMAND_AUTH, &tag);
     pa_tagstruct_putu32(t, PA_PROTOCOL_VERSION);
@@ -463,8 +461,6 @@
 
     pa_context_set_state(c, PA_CONTEXT_AUTHORIZING);
 
-finish:
-    
     pa_context_unref(c);
 }
 




More information about the pulseaudio-commits mailing list