Skip to content

Commit 98e9a51

Browse files
committed
merged the changes
2 parents 2f68932 + cb27a0c commit 98e9a51

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

pcap_binding.cc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ using Nan::New;
2121
using Nan::Null;
2222
using Nan::To;
2323

24-
class PiWorker : public AsyncWorker {
24+
class PcapWorker : public AsyncWorker {
2525
public:
26-
PiWorker(
26+
PcapWorker(
2727
Callback *callback,
2828
std::string device,
2929
std::string filter,
@@ -39,7 +39,7 @@ class PiWorker : public AsyncWorker {
3939
pcap_output_filename(pcap_output_filename),
4040
num_packets(num_packets)
4141
{}
42-
~PiWorker() {}
42+
~PcapWorker() {}
4343

4444
// Executed inside the worker-thread.
4545
// It is not safe to access V8, or V8 data structures
@@ -331,7 +331,7 @@ NAN_METHOD(PcapDumpAsync) {
331331
int num_packets = info[6]->Int32Value();
332332
Callback *callback = new Callback(info[7].As<Function>());
333333

334-
AsyncQueueWorker(new PiWorker(callback, std::string(*device),std::string(*filter),buffer_size, std::string(*pcap_output_filename),num_packets));
334+
AsyncQueueWorker(new PcapWorker(callback, std::string(*device),std::string(*filter),buffer_size, std::string(*pcap_output_filename),num_packets));
335335
}
336336

337337

0 commit comments

Comments
 (0)