Skip to content

Commit

Permalink
Fix mis-balanced unique lock calls
Browse files Browse the repository at this point in the history
Fix mis-balanced unique lock calls
  • Loading branch information
dragorn committed Dec 31, 2020
1 parent 80cc0d0 commit dd1f5ef
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 0 additions & 3 deletions eventbus.cc
Original file line number Diff line number Diff line change
Expand Up @@ -191,9 +191,6 @@ void event_bus::event_queue_dispatcher() {

// Reset the lock
event_cl.lock();

// Unlock our hold on the system
lock.unlock();

// Wait until new events
event_cl.block_until();
Expand Down
1 change: 1 addition & 0 deletions kis_datasource.cc
Original file line number Diff line number Diff line change
Expand Up @@ -837,6 +837,7 @@ void kis_datasource::handle_packet_probesource_report(uint32_t in_seqno,
void kis_datasource::handle_packet_opensource_report(uint32_t in_seqno,
const std::string& in_content) {
kis_unique_lock<kis_shared_mutex> lock(ext_mutex, std::defer_lock, "datasource handle_packet_opensource_report");
lock.lock();

KismetDatasource::OpenSourceReport report;

Expand Down

0 comments on commit dd1f5ef

Please sign in to comment.