tag: Return tag writing in progress when there is a messaged queued
authorRavi kumar Veeramally <ravikumar.veeramally@linux.intel.com>
Mon, 4 Jun 2012 12:58:21 +0000 (15:58 +0300)
committerSamuel Ortiz <sameo@linux.intel.com>
Mon, 4 Jun 2012 13:14:14 +0000 (15:14 +0200)
src/tag.c

index ee17ede..bb8e4f8 100644 (file)
--- a/src/tag.c
+++ b/src/tag.c
@@ -260,7 +260,7 @@ static DBusMessage *write_ndef(DBusConnection *conn,
 
        DBG("conn %p", conn);
 
-       if (tag->write_msg == NULL)
+       if (tag->write_msg)
                return __near_error_in_progress(msg);
 
        ndef = __ndef_build_from_message(msg);