Skip to content
Closed
Changes from 1 commit
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
Prev Previous commit
Added synchronized
  • Loading branch information
tdas committed Jun 2, 2015
commit 20b2ec1f4a452aba718219741958a8eb8c47aa89
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,9 @@ class JobScheduler(val ssc: StreamingContext) extends Logging {
eventLoop.post(ErrorReported(msg, e))
}

def isStarted(): Boolean = eventLoop != null
def isStarted(): Boolean = synchronized {
eventLoop != null
}

private def processEvent(event: JobSchedulerEvent) {
try {
Expand Down