<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -381,7 +381,7 @@ static ngx_int_t ngx_http_push_subscriber_handler(ngx_http_request_t *r) {
 				msg-&gt;received++;
 			}
 			//is the message still needed?
-			if(msg!=NULL &amp;&amp; msg-&gt;queue.next==NULL &amp;&amp; (--msg-&gt;refcount)==0) { 
+			if(msg!=NULL &amp;&amp; (--msg-&gt;refcount)==0 &amp;&amp; msg-&gt;queue.next==NULL) { 
 				//message was dequeued, and nobody needs it anymore
 				ngx_http_push_free_message_locked(msg, shpool);
 			}
@@ -831,7 +831,7 @@ static ngx_int_t ngx_http_push_respond_to_subscribers(ngx_http_push_channel_t *c
 	ngx_shmtx_lock(&amp;shpool-&gt;mutex);
 	channel-&gt;subscribers-=responded_subscribers;
 	//is the message still needed?
-	if(msg!=NULL &amp;&amp; msg-&gt;queue.next==NULL &amp;&amp; (--msg-&gt;refcount)==0) { 
+	if(msg!=NULL &amp;&amp; (--msg-&gt;refcount)==0 &amp;&amp; msg-&gt;queue.next==NULL) { 
 		//message was dequeued, and nobody needs it anymore
 		ngx_http_push_free_message_locked(msg, shpool);
 	}</diff>
      <filename>src/ngx_http_push_module.c</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>059ebe067a179775b2e414e2cca4479ecb169861</id>
    </parent>
  </parents>
  <author>
    <name>Leo P</name>
    <email>junk@slact.net</email>
  </author>
  <url>http://github.com/carsonbaker/nginx_http_push_module/commit/fdc56681a77361eb632b34ec08728e6a1043f585</url>
  <id>fdc56681a77361eb632b34ec08728e6a1043f585</id>
  <committed-date>2009-11-06T01:33:26-08:00</committed-date>
  <authored-date>2009-11-06T01:33:26-08:00</authored-date>
  <message>message removal refcount bugfix</message>
  <tree>442675fbfa81b70fc9c1c12bf1bebd2dce56979a</tree>
  <committer>
    <name>Leo P</name>
    <email>junk@slact.net</email>
  </committer>
</commit>
