Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -540,8 +540,8 @@ private void initialize() {

if (!this.isSourceActive()) {
setSourceStartupStatus(false);
if (Thread.currentThread().isInterrupted()) {
// If source is not running and thread is interrupted this means someone has tried to
if (Thread.currentThread().isInterrupted() || !this.sourceRunning) {
// If source is not running or thread is interrupted this means someone has tried to
// remove this peer.
return;
}
Expand Down Expand Up @@ -570,8 +570,8 @@ private void initialize() {

if (!this.isSourceActive()) {
setSourceStartupStatus(false);
if (Thread.currentThread().isInterrupted()) {
// If source is not running and thread is interrupted this means someone has tried to
if (Thread.currentThread().isInterrupted() || !this.sourceRunning) {
// If source is not running or thread is interrupted this means someone has tried to
// remove this peer.
return;
}
Expand Down