Clarify control flow in inotify read loop
[browser-switch] / launcher.c
index 45ce750..9d2953b 100644 (file)
@@ -381,7 +381,7 @@ void launch_microb(struct swb_context *ctx, char *uri) {
                                        pos += len;
                                else
                                        /* All events processed */
                                        pos += len;
                                else
                                        /* All events processed */
-                                       pos = buf + bytes_read;
+                                       break;
                        }
                        if (!pos)
                                /* Event found, stop looking */
                        }
                        if (!pos)
                                /* Event found, stop looking */