Skip to content

changes block in hasNext #71

@djoly42

Description

@djoly42

the changes is blocked/stuck in hasnext when we lose connection despite the signal changes.stop being set to true in another thread. Can we use the stop in the "do while" condition and exit when the signal is true.

` if(!stop) {
String row = "";
do {
row = getReader().readLine();
} while(row.length() == 0 && !stop);

			if(!row.startsWith("{\"last_seq\":")) { 
				setNextRow(gson.fromJson(row, Row.class));
				hasNext = true;
			} 
		}`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions